Skip to content
Myr

Add unbound "toggle" action for customization

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 34946b7 · Browse files · 3 files+11 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+11 added−2 removed

  • other:+11 added−2 removed

3 files+11 added−2 removed

modified:man/man1/fzf.1+3 added-2 removed
179 unmodified lines
180 down181 end-of-line182 forward-char183 forward-word184 kill-line184 kill-line (not bound)185 kill-word186 page-down187 page-up188 toggle (not bound)189 toggle-down189 toggle-sort190 toggle-sort (not bound; equivalent to \fB--toggle-sort\fR)191 toggle-up192 unix-line-discard193 unix-word-rubout194 up
80 unmodified lines
modified:src/options.go+2 added
342 unmodified lines
343 case "toggle-down":344 keymap[key] = actToggleDown345 case "toggle-up":346 keymap[key] = actToggleUp347 case "toggle":348 keymap[key] = actToggle349 case "down":350 keymap[key] = actDown351 case "up":352 keymap[key] = actUp
177 unmodified lines
modified:src/terminal.go+6 added
103 unmodified lines
104 actUnixLineDiscard105 actUnixWordRubout106 actYank107 actBackwardKillWord108 actToggle109 actToggleDown110 actToggleUp111 actDown112 actUp
611 unmodified lines
724 if t.cx > 0 {725 t.input = append(t.input[:t.cx-1], t.input[t.cx:]...)726 t.cx--727 }728 case actToggle:729 if t.multi && t.merger.Length() > 0 {730 toggle()731 req(reqList)732 }733 case actToggleDown:734 if t.multi && t.merger.Length() > 0 {735 toggle()736 t.vmove(-1)
155 unmodified lines