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
I prefer to use Ctrl-X, Ctrl-E to invoke an external editor in emacs mode (or v in vi mode), which I assume is invoking the same functionality. Now, […] a feature that I would like is that when control returns back to the shell from the external editor, the resultant text just replaces the current command line contents without executing it, and you can then choose to carry on editing, discard it or execute it as desired.
The mysql cli has something along those lines as it allows editing of the previous command using '\e', and after returning to the prompt, it can be executed with '\g' or cancelled with \c'.
The text was updated successfully, but these errors were encountered:
Thanks, that's an interesting idea. We could make that new behaviour subject to the histverify shell option, because that option already does the same thing for history expansions.
FWIW, while disregarding documentation or intent, I think the most useful and non-controversial behavior after picking a history line is indeed to have it replace the current text at the prompt, and from there the user can do what they want as if they entered it themselves (execute, further edit, etc).
McDutchie
changed the title
Feature request: option to make ^X^E / v replace command line instead of executing
Feature request: option to make fc / hist / ^X^E / v replace command line instead of executing
Dec 24, 2024
Originally posted by @dannyweldon in #748 (comment)
The text was updated successfully, but these errors were encountered: