zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

can't use fzf to search history in insert mode

Open Lithiumion007 opened this issue 4 months ago • 0 comments

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. B177E6CB53C7D32089D3CAF3F9CED367

Lithiumion007 avatar Oct 17 '24 10:10 Lithiumion007