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
At times while navigating the fzf items with preview window open makes cursor appear & disappear in different locations of the preview window.
Steps:
Open Alacritty window or iTerm2 window.
Launch tmux.
Go to some directory with a lot of files to run fzf from
Open fzf with command fzf --ansi --preview='echo {}', or fzf-tmux --ansi --preview='echo {}
Move up/down arrow key, it might require sprints of pressing and holding the arrow keys, abruptly releasing and repeating the procedure till you see cursor if flickering in the window.
This could have to do with the terminfo extension Sync mentioned in man tmux under section TERMINFO EXTENSIONS, though I don't know for sure (@nicm might be of help on that front). I know for sure its not my terminfo that has any problem as other program's cursor doesn't flicker anymore...
Demo:
previewcursor.mp4
The text was updated successfully, but these errors were encountered:
Can confirm it still happens with latest fzf on macOS/zsh.
This was really annoying me so I hacked a workaround by wrapping fzf and fully hiding the cursor while fzf is running.
Since fzf is so great at fuzzy matching, I never end up having to edit what I'm typing, so I really don't mind not seeing it while I type.
Keys could also be bound to show/hide the cursor. tput civis >/dev/tty 2>/dev/null will hide the cursor and tput cnorm >/dev/tty 2>/dev/null will restore it.
The following can be added to your .zshrc file to hide the cursor while fzf or fzf-tmux is running. A similar workaround can be done with other shells.
man fzf
)Info
Problem / Steps to reproduce
At times while navigating the fzf items with preview window open makes cursor appear & disappear in different locations of the preview window.
Steps:
fzf --ansi --preview='echo {}'
, orfzf-tmux --ansi --preview='echo {}
This could have to do with the terminfo extension
Sync
mentioned inman tmux
under sectionTERMINFO EXTENSIONS
, though I don't know for sure (@nicm might be of help on that front). I know for sure its not my terminfo that has any problem as other program's cursor doesn't flicker anymore...Demo:
previewcursor.mp4
The text was updated successfully, but these errors were encountered: