zsh-users / zsh-autosuggestions

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

Vim mode issues with autosuggestions #545

Closed gerazov closed 3 years ago

gerazov commented 4 years ago

Let me start off by saying that this is one of the features that have completely changed my experience of using the terminal kudos :+1: :clap:

I've found that scrolling through the auto suggestions in vim mode doesn't work for me, both using bindkey -v and the zsh-vim-mode plug in. Originally I though it was because of the zsh-vim-mode (https://github.com/softmoth/zsh-vim-mode/issues/25) but the behaviour using bindkey -v gives the same behaviour.

To reproduce just start typing a command in insert mode and then switch to vim mode and try scrolling for different autosuggestions and it simply scrolls from history ignoring the typed text. This also doesn't work when scrolling back with arrow keys in insert mode.

zsh_vim_backintime

Another problem is that going word by word in the suggestion can be done using w in normal mode (although it flashes some annoying output), but going back using b doesn't deselect them. zsh_vim_autocomplete

My plugin list reads:

plugins=(
  git
  extract
  colored-man-pages
  zsh-interactive-cd
  zsh-autosuggestions
  zsh-syntax-highlighting
  zsh-vim-mode
  )
source $ZSH/oh-my-zsh.sh
gerazov commented 3 years ago

This works - thanks! :+1: