zsh-vi-mode
zsh-vi-mode copied to clipboard
can't use fzf to search history in insert mode
Basic examination
- [ x] I have read through the README page
- [ x] I have the latest version of zsh-vi-mode
- [ ] I have tested with another terminal program
Problem description
When i in insert mode , pressed ctrl-r , fzf not work. But in normal mode,fzf works. Sorry to duplicate , i guess it's sourcing's sequence problem. I have readed the closed issues about fzf and zsh-vi-mode.
Reproduction steps
1.I appended zvm_after_init_commands+=('[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh' )
in zsh-vi-mode.zsh
2.In my .zshrc, source $(brew --prefix)/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
3.source .zshrc
Expected behavior
After pressed ctrl -r , fzf can work to search history.
Actual behavior
In insert mode, fzf works. But appears a string of words,like " -ne \e[6 q -ne \e[6 q". Whenever i input a command, "-ne \e[6 q " still appeas. It's so strange.