You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I found this trick to invoke fzf from within --bind with no flickering:
use execute-silent to prevent any screen switching
redirect stderr to /dev/tty so that your "internal" fzf displays ok
use clear-screen after your command to repaint the "initial" fzf finder
Everything then displays on alternate screen with no screen flashing.
Here's one example (press F1): find . -type f | fzf --bind 'f1:execute-silent(cat {} | fzf 2>/dev/tty)+clear-screen'
execute by design runs the command in the alternate screen which is not affected by --no-clear. I would recommend that you implement the "stacking" using shell script outside of fzf, rather than circumventing the limitations of execute bindings.
But the solution @notevenodd posted is quite clever.
man fzf
)Info
Problem / Steps to reproduce
Run this command (tried
execute-silent
also):When pressing Enter, I expect the
fzf
->fzf
transition to be seamless, instead I see a blinking of my terminal.It seems that
--no-clear
is great if you exitfzf
and re-run it. In this case, building "stacking"fzf
's is not possible.The text was updated successfully, but these errors were encountered: