junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
64.25k stars 2.38k forks source link

fzf `CTRL+R` only working in zsh `vicmd` mode #3891

Closed carettt closed 3 months ago

carettt commented 3 months ago

Checklist

Output of fzf --version

0.53.0 (0.53.0)

OS

Shell

Problem / Steps to reproduce

Hooked fzf into zsh with eval "$(fzf --zsh)", then source ~/.zshrc. When trying to reverse search with CTRL+R, the default zsh backwards incremental history search is run, with the following prompt:

bck-i-search: _

However, when exiting the prompt and pressing CTRL+R again, the fzf history search is executed with the expected prompt and UI.

EDIT: I have just realized that the issue isn't the amount of times CTRL-R is triggered, but instead that when i exit the regular history search prompt with ESC the terminal goes into vicmd mode instead of viins. This seems to be the same issue as #2694

carettt commented 3 months ago

fixed by hooking fzf after zsh-vi-mode. my bad ...

dkarter commented 1 week ago

This helped me: https://github.com/jeffreytse/zsh-vi-mode/issues/242#issuecomment-1721033298