junegunn / fzf-git.sh

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

Key-bindings for bash do not work in vi mode #39

Closed ishaan-kapoor closed 5 months ago

ishaan-kapoor commented 5 months ago

on pressing the key bind the function name is entered in the prompt and the shell goes from insert mode to normal mode. e.g. _fzf_git_branches is put when I press Ctrl+G + Ctrl+B in insert mode. and nothing happens when trying keybinds in normal mode (which is expected i guess)

Jobin-Nelson commented 5 months ago

Adding this line fixed this issue for me image

ishaan-kapoor commented 5 months ago

this means that I will have to press Alt+Ctrl+E or Esc followed by Ctrl+E after Ctrl+G Ctrl+B, right? I can achieve the same result by pressing enter as \_fzf_git_branches`` is already in the line.