Navigate menu selection items with Alt-hjkl
key style
#360
-
What do you want?Navigate items in the selection menu using Why do you want this?By using the proposed key combinations (along with the existing cursor keys) the left hand does not have to be moved to the cursor keys and so is much faster, comfortable and convenient. A menu selection item can be chosen without moving the left hand from the main position on the keyboard Who else would benefit from this?All the users that use vim and vi-style keybindings in other applications will want and benefit from the proposed enhancement Example scenarioGiven the following situation:
When I perform the following steps:
Then I expect the following to happen:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Menu selection itself is not a feature
The most reliable way to find out what escape code your terminal sends for a particular key or key combo, is as follows:
You can find a list of those and what they do in this section of the Zsh manual. Once you know which escape code and widget to use, you can bind them in the bindkey -M menuselect <keycode> <widget> Restart your shell or terminal for the changes to take effect. |
Beta Was this translation helpful? Give feedback.
Menu selection itself is not a feature
zsh-autocomplete
, but rather of Zsh.zsh-autocomplete
merely enables it and adds some sensible defaults.The most reliable way to find out what escape code your terminal sends for a particular key or key combo, is as follows:
bindkey '^V' describe-key-briefly
.You can find a list of those and what they do in this section of the Zsh manual.
Once you know which escape code and widget to use, you can bind them in the
menuselect
keymap with Zsh'sbindkey
command by adding sta…