diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-07-06 10:05:25 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-07-06 10:05:25 +0900 |
| commit | 6e3c830cd26194775ad18d565b1d96df8ae945f0 (patch) | |
| tree | 7a944edfca478188bc8f967270fb7e0016651316 /src/terminal.go | |
| parent | d7db7fc13275ed55b6d3d79b18f95d5b83b7a015 (diff) | |
| download | fzf-6e3c830cd26194775ad18d565b1d96df8ae945f0.tar.gz | |
Add 'multi' event triggered on multi-selection changes
Diffstat (limited to 'src/terminal.go')
| -rw-r--r-- | src/terminal.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index 8b5529fe..634d7859 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -5399,6 +5399,7 @@ func (t *Terminal) Loop() error { } previousInput := t.input previousCx := t.cx + previousVersion := t.version t.lastKey = event.KeyName() updatePreviewWindow := func(forcePreview bool) { t.resizeWindows(forcePreview, false) @@ -6656,6 +6657,9 @@ func (t *Terminal) Loop() error { if onEOFs, prs := t.keymap[tui.BackwardEOF.AsEvent()]; beof && prs && !doActions(onEOFs) { continue } + if onMultis, prs := t.keymap[tui.Multi.AsEvent()]; t.version != previousVersion && prs && !doActions(onMultis) { + continue + } } else { jumpEvent := tui.JumpCancel if event.Type == tui.Rune { |
