mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-30 10:05:58 +00:00
Allow action composition over multiple --bind
# Note + prefix in the second bind expression fzf --bind u:up --bind u:+up fzf --bind u:up+up
This commit is contained in:
1 parent
60465c4664
commit
e615600ff1
2 files changed
+7
-2
No files matched your search
+5
-1
@@ -809,7 +809,11 @@ func parseKeymap(keymap map[int][]action, str string) {
|
||||
default:
|
||||
t := isExecuteAction(specLower)
|
||||
if t == actIgnore {
|
||||
errorExit("unknown action: " + spec)
|
||||
if specIndex == 0 && specLower == "" {
|
||||
actions = append(keymap[key], actions...)
|
||||
} else {
|
||||
errorExit("unknown action: " + spec)
|
||||
}
|
||||
} else {
|
||||
var offset int
|
||||
switch t {
|
||||
|
||||
Reference in new issue
Block a user