summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-05-20 21:25:15 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-05-21 00:32:03 +0900
commit1592bedbe82e2c58dcc9b990655c65a1116d1ff7 (patch)
tree65b60ec00a2e8038325f73910babfb80b137cf82 /test
parent15099eb13b075891df9cb20e65bdf9ebd3acbb92 (diff)
Custom key binding support (#238)
Diffstat (limited to 'test')
-rw-r--r--test/test_go.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 36ef6854..53e2bc4e 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -516,6 +516,12 @@ class TestGoFZF < TestBase
assert_equal 1, `echo Foo bar | #{FZF} -x -f "foo Fbar" | wc -l`.to_i
end
+ def test_bind
+ tmux.send_keys "seq 1 1000 | #{fzf '-m --bind=ctrl-j:accept,z:up,x:toggle-up'}", :Enter
+ tmux.until { |lines| lines[-2].end_with? '/1000' }
+ tmux.send_keys 'zzz', 'xx', 'C-j'
+ assert_equal %w[4 5], readonce.split($/)
+ end
private
def writelines path, lines
File.unlink path while File.exists? path