Skip to content

Ability to use normal/select mode in prompt editor #16171

Description

@pheki

Thanks for making this editor!

Currently, the prompt has keybindings that are completely different from the editor, specified here: https://docs.helix-editor.com/keymap.html#prompt

That means that there's always context switching when using the prompt to edit a complex line (e.g. to save a file with a long path). The worst part is that I have the instinct (I imagine I'm not the only one?) of pressing ESC (located where there's usually a CAPS LOCK) when I want to edit something that's earlier and I end up losing the whole command (like :w some/very/long/and/.complex/path/i/have/to/remember).

The last part could be mitigated by #5505, but it would be a lot better if one could use all the same keybindings and modes, such as <ESC>BP to paste something at the start of the path or <ESC>gwad to go 2 words back, <ESC>xy yank what you typed so you can get back later, etc, all while relying on muscle memory.

The same would be valid for the picker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions