marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.38k stars 148 forks source link

Esc to exit menus #718

Closed jul-sh closed 6 months ago

jul-sh commented 6 months ago

I really want to like this plugin. It's a bit complex, but this config works for me

bindkey              '^I' menu-select
bindkey -M menuselect              '^I'         menu-complete
bindkey -M menuselect "$terminfo[kcbt]" reverse-menu-complete

The only issue is that I cannot exit menus with shift tab anymore. I'd like to bind the escape key to exit any menu instead.

jul-sh commented 6 months ago

Found the relevant binding: bindkey -M menuselect '^[' send-break in #226