You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pressing ESC v in Vi command line editing mode is the same as pressing Ctrl+X Ctrl+E in Emacs command line editing mode. It brings up the editor specified by $VISUAL or $EDITOR (or emacs if the environment variables VISUAL and EDITOR are unset) for you to edit the current command in a temporary file. Save the file and exit the editor to execute the command.
From the bash manual (which does not document the Vi commands):
edit-and-execute-command (C-x C-e)
Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke $VISUAL, $EDITOR, and emacs as the editor, in that order.
Is your feature request related to a problem? Please describe.
One bug/UX issue I've noticed, when using J/K to scroll command history, it is essentially impossible to edit multiline commands as J/K just goes to the next/prev commands instead of navigating lines of the command. You are only able to edit without running by clicking with a mouse/trackpad, which defeats the purpose of VIM
Additional context
Screencast I recorded using this feature outside Warp.
To anyone else interested in this feature, please add a :+1: to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.
Thank you again for raising this @cshintov! As of the latest version of Warp, j and k should work for editing multi-line commands; they'll move the cursor up and down within the Input Editor first, and only navigate through command history when on the top or bottom line. Hopefully this addresses the UX issue @djmango brought up as well.
Discord username (optional)
who_isjohngalt
Description
Pressing
ESC v
in Vi command line editing mode is the same as pressingCtrl+X Ctrl+E
in Emacs command line editing mode. It brings up the editor specified by$VISUAL
or$EDITOR
(or emacs if the environment variablesVISUAL
andEDITOR
are unset) for you to edit the current command in a temporary file. Save the file and exit the editor to execute the command.From the bash manual (which does not document the Vi commands):
Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke
$VISUAL, $EDITOR, and emacs
as the editor, in that order.Is your feature request related to a problem? Please describe.
@djmango 's ux improvement idea.
#159 (comment)
Additional context
Screencast I recorded using this feature outside Warp.
https://asciinema.org/a/meLLPfvoHHTZRqGeU5nhzh1HO
@lucieleblanc Issue raised as you requested :)
#159 (comment)
How important is this feature to you?
5 (Can't work without it!)
Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087
None
The text was updated successfully, but these errors were encountered: