zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.81k stars 1.85k forks source link

Auto suggestion completion with ctrl + e doesn't work after adding bindkey - v to .zshrc file #606

Closed Yalchin403 closed 3 years ago

Yalchin403 commented 3 years ago

Describe the bug

To Reproduce

Steps to reproduce the behavior:

% zsh -df
% source path/to/zsh-autosuggestions.zsh
% ... # what do you do to reproduce?

Expected behavior

Screenshots

Desktop

Additional context

ericfreese commented 3 years ago

This is expected. Vi cmd mode (what bindkey -v enables) does not bind ^E to end-of-line and end-of-line is what accepts the suggestion by default. You should be able to use $ out of the box in vi mode to go to the end of the line (and accept the suggestion) but if you want to use ^E in vi mode you'll need to bind it yourself. I think you can do this with bindkey -a ^E end-of-line