Add --track option to track the current selection

Close #3186
Related #1890
This commit is contained in:
Junegunn Choi
2023-03-29 20:36:09 +09:00
parent ae745d9397
commit 1c7534f009
6 changed files with 81 additions and 1 deletions

View File

@@ -92,6 +92,16 @@ interface rather than a "fuzzy finder". You can later enable the search using
.B "+s, --no-sort"
Do not sort the result
.TP
.B "--track"
Make fzf track the current selection when the result list is updated.
This can be useful when browsing logs using fzf with sorting disabled.
.RS
e.g.
\fBgit log --oneline --graph --color=always | nl |
fzf --ansi --track --no-sort --layout=reverse-list\fR
.RE
.TP
.B "--tac"
Reverse the order of the input