I'm trying to bind "possible completions" (currently bound to C-d
) to the key M-=
in Zsh.
The code, therefore, should be:
bindkey "\e=" _list_expansions
but it has no effect!? Do you understand why, and how to fix?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI'm trying to bind "possible completions" (currently bound to C-d
) to the key M-=
in Zsh.
The code, therefore, should be:
bindkey "\e=" _list_expansions
but it has no effect!? Do you understand why, and how to fix?
The widget for the list of possible completions is called list-choices
.
bindkey '\e=' list-choices
The widget bound on Ctrl+D by default is list-choices
in vi mode and delete-char-or-list
in emacs
mode.
See info zsh list-choices
for details.
vi
in EDITOR nor VISUAL, but that does not seem to work, as you pointed it for the key binding to be found on C-d). Thanks a lot!
Apr 21, 2020 at 20:21