-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Down arrow key has no effect #21
Comments
Thanks for reporting this. This is one config permutation that I hadn’t considered. The Down key doesn’t do menu selection if you don’t use fzf, because then you need the Down key to go forward when doing history search. However, I failed to realize that then you don’t have a way to enter menu selection. I will fix this by making it so that, if you don’t use fzf, I will not override the Tab key behavior. I’ll let you know when I’ve pushed in a fix. Apologies for the inconvenience! |
@romzie I pushed in a fix. Please update and try it out. |
@marlonrichert Okay just pulled and tested it. Here is my feedback :
Thanks for the quick reply ! |
@romzie This behavior is entirely intentional on my part and not a bug. It is exactly as specified in the Readme under "Key bindings in the completion menu". 🙂 Since you can already move around in the menu using the arrow keys, If you want to disabled this, just add the following to your bindkey -M menuselect $key[Tab] menu-complete |
Oh, and if you want Shift-Tab to cycle in the opposite direction while in the menu, rather than show more completions/info, add the following: add-zle-hook-widget -d line-init _zsh_autocomplete__h__keymap-specific_keys
bindkey -M menuselect $key[BackTab] reverse-menu-complete |
Well you got me there, I did not read enough of the README. Thank you for adding those additionnal key binding choices to the README. Closing this issue, keep up the great job! Love this plugin now btw. |
@romzie I added more info to the Readme on how to customize the behavior of |
Just cloned this repo and added it to my zsh config (with oh-my-zsh).
All seems to work fine (I don't have fzf installed), except the Down arrow key that has no effect. So I basically have no opportunity to navigate through proposals.
I tried commenting all my other zsh plugins but same issue.
My zshrc : here.
Also it would be nice to be able to enable/disable some key bindings.
For example I would gladly disable the Tab that selects first choice to keep the zsh behavior of hitting Tab twice to enter the suggestion grid.
The text was updated successfully, but these errors were encountered: