vscode-edit-with-shell icon indicating copy to clipboard operation
vscode-edit-with-shell copied to clipboard

Eliminate leading "escape"?

Open gitcabezon opened this issue 4 years ago • 2 comments

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.

gitcabezon avatar Jun 15 '20 04:06 gitcabezon

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:

ryu1kn avatar Jul 07 '20 11:07 ryu1kn

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.

pallxk avatar May 29 '24 12:05 pallxk