summaryrefslogtreecommitdiff
path: root/src/options_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-11-21 23:06:14 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-11-21 23:06:14 +0900
commite615600ff150e460a22d6a74da21a6df40d486fc (patch)
treeb02ded20df20fcf5b03f2c222b9df40fed627912 /src/options_test.go
parent60465c4664bd390c49d5eeb46abcbf7d34c36cc2 (diff)
downloadfzf-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_test.go')
-rw-r--r--src/options_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options_test.go b/src/options_test.go
index 5d35fb3e..66d7c8f5 100644
--- a/src/options_test.go
+++ b/src/options_test.go
@@ -246,6 +246,7 @@ func TestBind(t *testing.T) {
"f1:execute(ls {+})+abort+execute(echo {+})+select-all,f2:execute/echo {}, {}, {}/,f3:execute[echo '({})'],f4:execute;less {};,"+
"alt-a:execute-Multi@echo (,),[,],/,:,;,%,{}@,alt-b:execute;echo (,),[,],/,:,@,%,{};,"+
"x:Execute(foo+bar),X:execute/bar+baz/"+
+ ",f1:+top,f1:+top"+
",,:abort,::accept,+:execute:++\nfoobar,Y:execute(baz)+up")
check(tui.CtrlA, "", actKillLine)
check(tui.CtrlB, "", actToggleSort, actUp, actDown)
@@ -253,7 +254,7 @@ func TestBind(t *testing.T) {
check(tui.AltZ+',', "", actAbort)
check(tui.AltZ+':', "", actAccept)
check(tui.AltZ, "", actPageDown)
- check(tui.F1, "ls {+}", actExecute, actAbort, actExecute)
+ check(tui.F1, "ls {+}", actExecute, actAbort, actExecute, actSelectAll, actTop, actTop)
check(tui.F2, "echo {}, {}, {}", actExecute)
check(tui.F3, "echo '({})'", actExecute)
check(tui.F4, "less {}", actExecute)