Skip to content

Feature request: option to make fc / hist / ^X^E / v replace command line instead of executing #807

@McDutchie

Description

@McDutchie

Originally posted by @dannyweldon in #748 (comment)

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.1Issue relevant to dev branch (v1.1.*)enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions