nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.4k stars 46 forks source link

When a search has been deleted or edited, the location of the picker doesn't scroll back to the top #111

Closed sainttttt closed 1 year ago

sainttttt commented 1 year ago

If you search for a file and scroll down a few entries in the picker, and then delete the search query and enter something else, the cursor remains at the scrolled location instead of resetting to the top. It really should reset back to the top, as other pickers like telescope does this.

sainttttt commented 1 year ago

I figured out this is something to do with fzf itself, and can be fixed by the option --bind change:top

ebkalderon commented 1 year ago

I've been looking for a fix for this for a while, and I happened to stumble upon this ticket by chance. Where in the configuration exactly did you apply --bind change:top? Or is this option not possible to apply with telescope-fzf-native.nvim, being a native C implementation of fzf?

EDIT: It turns out the issue went away on its own with an upgrade to the latest neovim 0.10.0-dev without touching my config at all. Must have been a regression in nightly Neovim, then? :man_shrugging: Nevertheless, I'd still love to learn how you managed to apply custom options to telescope-fzf-native. Thanks!