diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2019-11-21 23:06:14 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-11-21 23:06:14 +0900 |
| commit | e615600ff150e460a22d6a74da21a6df40d486fc (patch) | |
| tree | b02ded20df20fcf5b03f2c222b9df40fed627912 /src/options.go | |
| parent | 60465c4664bd390c49d5eeb46abcbf7d34c36cc2 (diff) | |
| download | fzf-e615600ff150e460a22d6a74da21a6df40d486fc.tar.gz | |
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
Diffstat (limited to 'src/options.go')
| -rw-r--r-- | src/options.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/options.go b/src/options.go index bdd16e1c..bb7333ca 100644 --- a/src/options.go +++ b/src/options.go @@ -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 { |
