vscode-edit-with-shell
vscode-edit-with-shell copied to clipboard
Eliminate leading "escape"?
Is it possible to eliminate having to press escape to type a new shell command?
At first invocation, it goes into a "search the command history" mode, but I'd rather it go straight into editing-the-command mode, where up/down arrows would switch between previous commands, and right-left arrows would let you modify the current command, and enter would run it immediately.
Even better would be to have "/" switch into "search the history" mode.
Hi @gitcabezon , thanks for the great suggestion. Let me re-think this once we have the following feature implemented in the editor.
https://github.com/microsoft/vscode/issues/35785
I'd like to start typing a command (without dismissing the history panel first), but looking at past commands at the same time :smiley:
For now, I'm using the following key binding to work around this:
{
"key": "cmd+k cmd+e",
"command": "runCommands",
"args": {
"commands": [
"editWithShell.runCommand",
"editWithShell.runCommand"
]
},
"when": "!inKeybindings"
},
This works regardless of whether command history is empty or not, and will go directly to the Enter a command
prompt.