Add shortcut for `terminal.runRecentCommand`
vic opened this issue · comments
Victor Borja commented
Problem
It's very common to be editing code and suddenly need to execute some recent command on the terminal. In order to do it quickly you either have to rely on other extensions or watch daemons. It would be nice to have a single keystroke that we can use with VSpaceCode.
Solution
There should be a shortcut for the vscode native command: terminal.runRecentCommand, which presents a list of most recent commands with the previous one preselected.
Alternatives
- Focus the terminal with
SPC !
and thenCtrl+R
to search recent commands and execute one. - Use a watcher daemon, eg. when compiling on changes. But this only when you want to run only a single command automatically.
- There's an extension named
rerun-last-command
but it works by sending!!
to the terminal (might not work in all shells). And only supports the very last command.
Additional context
None.