junegunn / fzf-git.sh

bash and zsh key bindings for Git objects, powered by fzf
612 stars 53 forks source link

Keybindings not working for vi command mode #34

Closed cohml closed 6 months ago

cohml commented 8 months ago

After sourcing the plugin, the ^G^* keybindings work for emacs and viins modes. However the widgets aren't bound to anything in vicmd mode.

Fundamentally, this is because the zsh version of __fzf_git_init doesn't explicitly specify a mode for bindkey, which for vi mode users means all keybindings default to viins.

To fix this, minimally -M vicmd must be specified in its own call to bindkey.

Possibly related to #23. Nvm, I don't think so.