diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2023-01-23 16:22:25 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-01-23 16:38:24 +0900 |
| commit | 284d77fe2e41ec69fcc7ca7162bcf9b65b1641be (patch) | |
| tree | 0dbac33153f7b7b611bc41451e09fdeeb4af4410 /src/options.go | |
| parent | 826178f1e2927ecef8b7699ef1269ba060a0a029 (diff) | |
| download | fzf-284d77fe2e41ec69fcc7ca7162bcf9b65b1641be.tar.gz | |
Add 'focus' event
Can we find a better name? I have considered the followings.
* 'point', because "the pointer" points to the current item.
* 'shift', 'switch', 'move', etc. These are not technically correct
because the current item can change without cursor movement (--tac,
reload, search update)
* 'change' is already taken. 'change-current' feels a bit wordy and
sounds wrong, 'current-changed' is wordy and doesn't go well with the
other event names
* 'target', not straightforward
Close #3053
Diffstat (limited to 'src/options.go')
| -rw-r--r-- | src/options.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.go b/src/options.go index fa238d7e..393f5804 100644 --- a/src/options.go +++ b/src/options.go @@ -609,6 +609,8 @@ func parseKeyChordsImpl(str string, message string, exit func(string)) map[tui.E add(tui.Start) case "load": add(tui.Load) + case "focus": + add(tui.Focus) case "alt-enter", "alt-return": chords[tui.CtrlAltKey('m')] = key case "alt-space": |
