zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
31.11k stars 1.86k forks source link

Can I scroll through the suggestion history? #675

Open SaimM95 opened 2 years ago

SaimM95 commented 2 years ago

A lot of times there are multiple suggestions that might map to a single tool. For instance, consider the following:

git checkout mybranch
git checkout mybranch2

Now when I type git, the auto-suggested command will be git checkout mybranch2. Is there a way I can scroll through the history to pick a different command?

timur-g commented 2 years ago

Could be a duplicate of #303 but that solution doesn't work for me.

salkin-mada commented 1 year ago

@SaimM95 and @gitgt maybe this will help? #677 and use bindkey like described here : https://github.com/zsh-users/zsh-autosuggestions/issues/646#issuecomment-1011417964