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
Sometimes, a command or other prompt (e.g. rename) will require typing or editing text using readline, where I cannot use helix's modal editing techniques. Is there any chance we could get the ability to edit text in prompts using modal editing, as if the prompt were its own buffer? I figure this could be opted into via some chord (ideally one that wouldn't already mean something in readline).
example use-case: (using ctrl-o as the mode-change chord)
I want to rename a symbol to change to lower-case (specifically using the LSP's symbol rename function)
Currently, I have to: spacer (then delete / re-type the name) enter
I would prefer to: spacerctrl-oB`enter
Complications and open questions:
how to exit this modal editing sub-mode (whether confirming or cancelling the prompt)? Treating it like a buffer and using :x to finish editing, could be confusing and would possibly introduce recursion with this command sub-mode (which could have its own edit sub-mode). Above, I've just used enter, as I don't feel prepared to answer these questions myself.
Ideally (for me) this would work in most prompts (search prompt, rename prompt, command prompt) but I'm not sure about the picker-style prompts (e.g. file picker, command palette, global search results).
This discussion was converted from issue #10329 on April 10, 2024 13:20.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes, a command or other prompt (e.g. rename) will require typing or editing text using readline, where I cannot use helix's modal editing techniques. Is there any chance we could get the ability to edit text in prompts using modal editing, as if the prompt were its own buffer? I figure this could be opted into via some chord (ideally one that wouldn't already mean something in readline).
example use-case: (using ctrl-o as the mode-change chord)
Currently, I have to:
space
r
(then delete / re-type the name)enter
I would prefer to:
space
r
ctrl-o
B
`
enter
Complications and open questions:
:x
to finish editing, could be confusing and would possibly introduce recursion with this command sub-mode (which could have its own edit sub-mode). Above, I've just usedenter
, as I don't feel prepared to answer these questions myself.Beta Was this translation helpful? Give feedback.
All reactions