Disallow using --track with --tac

Close #3234
pull/3254/head
Junegunn Choi 1 year ago
parent 36b971ee4e
commit 96670d5f16
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -1,6 +1,11 @@
CHANGELOG
=========
0.39.1
------
- Disallow using `--track` with `--tac` as the result can be very confusing
- Bug fixes and improvements
0.39.0
------
- Added `one` event that is triggered when there's only one match

@ -95,6 +95,7 @@ Do not sort the result
.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.
This option is not compatible with \fB--tac\fR.
.RS
e.g.

@ -1938,6 +1938,10 @@ func postProcessOptions(opts *Options) {
errorExit("scrollbar display width should be 1")
}
if opts.Track && opts.Tac {
errorExit("--track cannot be used with --tac")
}
// Default actions for CTRL-N / CTRL-P when --history is set
if opts.History != nil {
if _, prs := opts.Keymap[tui.CtrlP.AsEvent()]; !prs {

Loading…
Cancel
Save