zsh-autocomplete
zsh-autocomplete copied to clipboard
Get out from history menu without selecting anything
What do you want?
When you are in history mode you have to select something, I want to hit Ctrl C to get out of the menu.
Why do you want this?
the completion menu already has that feature, and I want to change my mind
Who else would benefit from this?
anybody who was looking for something, didn't find it or changed their mind and want to quit
How should it work?
a keybind that make get out of the menu and back to editing your line
ESC works for me for this
@baudneo it does nothing for me.
Thanks for the suggestion. I will add this.
In the meantime, just add this to your .zshrc
file:
bindkey -M menuselect '^_' .undo
You will then be able to press Ctrl- or Ctrl/ (depending on your terminal) in the history or completion menu to undo the last item your inserted into the command line.
@Arrow-x It's now implemented.
PS: If you enjoy using my software, please consider sponsoring me. 🙂