mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 21:05:09 +00:00
Add ignore
action for --bind
This commit is contained in:
parent
8e7164553f
commit
9fca611c4a
@ -391,6 +391,8 @@ func parseKeymap(keymap map[int]actionType, toggleSort bool, str string) (map[in
|
||||
key := keys[0]
|
||||
act := strings.ToLower(pair[1])
|
||||
switch act {
|
||||
case "ignore":
|
||||
keymap[key] = actIgnore
|
||||
case "beginning-of-line":
|
||||
keymap[key] = actBeginningOfLine
|
||||
case "abort":
|
||||
|
@ -716,6 +716,9 @@ func (t *Terminal) Loop() {
|
||||
}
|
||||
}
|
||||
switch action {
|
||||
case actIgnore:
|
||||
t.mutex.Unlock()
|
||||
continue
|
||||
case actInvalid:
|
||||
t.mutex.Unlock()
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user