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
{{ message }}
Repository navigation
feature request: track selection across reload-sync #3460
However, this loses the current selection and instead selects whatever line is at that position in the new ordering.
I would like fzf to track of the currently selected line when reload-sync completes and it's still in there. How could I achieve this?
# --id-nth .. means we compare the entire line to find the entry after a reload
fzf --id-nth .. --multi --bind 'start,ctrl-r:reload-sync:sort -R /usr/share/dict/words'
Activity
junegunn commentedon Oct 8, 2023
What's the exact use case?
yorickvP commentedon Oct 21, 2023
https://git.yori.cc/yorick/dotfiles/src/branch/master/bin/dep-drill.sh
Replace --track=NTH with --id-nth for cross-reload item identity
Add field-based tracking across reloads (--track=NTH)
junegunn commentedon Mar 15, 2026
In 0.71.0, with
--id-nth,reload-syncwill preserve the selections.