reedline
reedline copied to clipboard
Open current line in editor with ctrl+x e
Related problem
In bash and zsh you can hit ctrl+x e to open the current line in $EDITOR as shown here
Could we please add this to nushell ?
It would be especially handy with long / multiline commands.
After you save it, it should update the current prompt, but not run it straight away, you'd have to hit enter again to run it.
Many Thanks
Describe the solution you'd like
- Hit
ctrl+x eon the keyboard. - The current command line contents (including multiline) is opened in
$EDITOR - In the editor the user edits the lines, saves and exits
- The command line contents is updated
- The user still has the chance to hit either enter to execute it, or
ctrl+cto abort
Describe alternatives you've considered
No response
Additional context and details
No response
ctrl+o does this now. I don't think reedline supports key binding chords like ctrl+x e yet. Moving to the reedline repo as a change will have to happen here I believe.