summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-11-08 00:11:46 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-11-08 00:12:12 +0900
commite99731ea852d1faac5390594cd980708edf826cf (patch)
tree91705daf049196425808c621d4676c1111813057 /test
parent15659ac6e6ae413d86dc8229c7827e6983bad9db (diff)
[shell] Add FZF_ALT_C_COMMAND for ALT-C (#408)
Diffstat (limited to 'test')
-rw-r--r--test/test_go.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 50d401c3..7143d369 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -981,6 +981,22 @@ module TestShell
tmux.until { |lines| lines[-1].end_with?(expected) }
end
+ def test_alt_c_command
+ set_var 'FZF_ALT_C_COMMAND', 'echo /tmp'
+
+ tmux.prepare
+ tmux.send_keys 'cd /', :Enter
+
+ tmux.prepare
+ tmux.send_keys :Escape, :c, pane: 0
+ lines = tmux.until(1) { |lines| lines.item_count == 1 }
+ tmux.send_keys :Enter, pane: 1
+
+ tmux.prepare
+ tmux.send_keys :pwd, :Enter
+ tmux.until { |lines| lines[-1].end_with? '/tmp' }
+ end
+
def test_ctrl_r
tmux.prepare
tmux.send_keys 'echo 1st', :Enter; tmux.prepare