summaryrefslogtreecommitdiffstats
path: root/src/options_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-06-15 23:25:00 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-06-15 23:27:05 +0900
commit8677dbded15ffad32bdc4cc20db4152a376424f0 (patch)
tree6c8755a86e7d64213731526909e9f1e955cfb744 /src/options_test.go
parent794ad5785ddd96e65e71767be2de201d0b154df2 (diff)
Change alternative notation for execute action (#265)
e.g. fzf --bind "ctrl-m:execute:COMMAND..." --bind ctrl-j:accept
Diffstat (limited to 'src/options_test.go')
-rw-r--r--src/options_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options_test.go b/src/options_test.go
index 3c33ef47..dee1c0d1 100644
--- a/src/options_test.go
+++ b/src/options_test.go
@@ -162,9 +162,9 @@ func TestBind(t *testing.T) {
keymap, execmap, toggleSort :=
parseKeymap(keymap, execmap, false,
"ctrl-a:kill-line,ctrl-b:toggle-sort,c:page-up,alt-z:page-down,"+
- "f1:execute(ls {}),f2:execute/echo {}, {}, {}/,f3:execute[echo '({})'],f4:execute:less {}:,"+
+ "f1:execute(ls {}),f2:execute/echo {}, {}, {}/,f3:execute[echo '({})'],f4:execute;less {};,"+
"alt-a:execute@echo (,),[,],/,:,;,%,{}@,alt-b:execute;echo (,),[,],/,:,@,%,{};"+
- ",X:execute=\nfoobar,Y:execute(baz)")
+ ",X:execute:\nfoobar,Y:execute(baz)")
if !toggleSort {
t.Errorf("toggleSort not set")
}
@@ -184,7 +184,7 @@ func TestBind(t *testing.T) {
checkString("echo (,),[,],/,:,@,%,{}", execmap[curses.AltB])
checkString("\nfoobar,Y:execute(baz)", execmap[curses.AltZ+'X'])
- for idx, char := range []rune{'~', '!', '@', '#', '$', '%', '^', '&', '*', '|', ':', ';', '/'} {
+ for idx, char := range []rune{'~', '!', '@', '#', '$', '%', '^', '&', '*', '|', ';', '/'} {
keymap, execmap, toggleSort =
parseKeymap(keymap, execmap, false, fmt.Sprintf("%d:execute%cfoobar%c", idx%10, char, char))
checkString("foobar", execmap[curses.AltZ+int([]rune(fmt.Sprintf("%d", idx%10))[0])])