mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-09 16:42:00 -07:00
Add unbound "toggle" action for customization
This commit is contained in:
@@ -105,6 +105,7 @@ const (
|
||||
actUnixWordRubout
|
||||
actYank
|
||||
actBackwardKillWord
|
||||
actToggle
|
||||
actToggleDown
|
||||
actToggleUp
|
||||
actDown
|
||||
@@ -724,6 +725,11 @@ func (t *Terminal) Loop() {
|
||||
t.input = append(t.input[:t.cx-1], t.input[t.cx:]...)
|
||||
t.cx--
|
||||
}
|
||||
case actToggle:
|
||||
if t.multi && t.merger.Length() > 0 {
|
||||
toggle()
|
||||
req(reqList)
|
||||
}
|
||||
case actToggleDown:
|
||||
if t.multi && t.merger.Length() > 0 {
|
||||
toggle()
|
||||
|
Reference in New Issue
Block a user