zsh-users / zsh-autosuggestions

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

change auto complete shortcut to Tab instead #656

Open wazeerc opened 2 years ago

wazeerc commented 2 years ago

Just wondering if there's the possibility to re bind the auto-complete button (which is the right arrow key by default) to Tab.

ericfreese commented 2 years ago

Yeah take a look at the bottom of this section of the Readme: https://github.com/zsh-users/zsh-autosuggestions#key-bindings

You can use ^I to represent tab when calling bindkey

Rhahkeem commented 2 years ago

Yeah take a look at the bottom of this section of the Readme: https://github.com/zsh-users/zsh-autosuggestions#key-bindings

You can use ^I to represent tab when calling bindkey

where would you put this binding? Is it in a specific file or just in an overrides.zsh in the $ZSH_CUSTOM directory?

danigiorgio commented 1 year ago

Yeah take a look at the bottom of this section of the Readme: https://github.com/zsh-users/zsh-autosuggestions#key-bindings You can use ^I to represent tab when calling bindkey

where would you put this binding? Is it in a specific file or just in an overrides.zsh in the $ZSH_CUSTOM directory?

Put it in ./zshrc (open it by running open ~/.zshrc)

it would be like this, make sure it's below plugins.

plugins=(
 zsh-autosuggestions
)

bindkey '^I' autosuggest-accept