Closed doronbehar closed 7 months ago
The default keybinding can be overridden with zstyle ':fzf-tab:*' fzf-flags --bind "tab:toggle"
But @Aloxaf --bind
and --expect
is not the same thing. Also, with the config you suggested, pressing Enter doesn't put the selection to the line editor.
Have you modified fzf's default key bindings elsewhere?
According to fzf's documentation, enter
is bound to the accept
event by default.
Have you modified fzf's default key bindings elsewhere?
No.
According to fzf's documentation,
enter
is bound to theaccept
event by default.
I know.. Here's a screencast of what I'm experiencing:
https://asciinema.org/a/SZeA3qadPh5ElkeqeTAgHPTaY
I'm pressing enter in the ls
fzf window, and the selections simply unselect themselves. Then I changed fzf-tab
to a branch with the diff of the patch I wrote above, and the issue is fixed.
Have you set FZF_DEFAULT_OPTS
? It seems that you have something like enter:toggle
in fzf options.
Have you set
FZF_DEFAULT_OPTS
?
Yes, to:
--layout=reverse --inline-info
My desired behavior of this plugin is similar to the original behavior of
fzf
:continuous-trigger
is disabled.accept-line
is disabled.I didn't manage to play with all the settings and reach this behavior, so I ended up monkey-patching
fzf-tab
as follows:With no settings other then
zstyle ':fzf-tab:*' continuous-trigger ""
in my.zshrc
. Is it possible to get the behavior I desire without this patch?Thanks for creating this wonderful plugin!