From e60a9a628b48bb1304db30b3c2d9e051c3af05cd Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 19 Dec 2024 20:51:49 +0900 Subject: Add toggle-multi-line action --- test/test_go.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index 105e8ef0..66e1c429 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2133,7 +2133,11 @@ class TestGoFZF < TestBase end def test_keep_right - tmux.send_keys "seq 10000 | #{FZF} --read0 --keep-right --no-multi-line", :Enter + tmux.send_keys "seq 10000 | #{FZF} --read0 --keep-right --no-multi-line --bind space:toggle-multi-line", :Enter + tmux.until { |lines| assert lines.any_include?('9999␊10000') } + tmux.send_keys :Space + tmux.until { |lines| assert lines.any_include?('> 1') } + tmux.send_keys :Space tmux.until { |lines| assert lines.any_include?('9999␊10000') } end -- cgit v1.2.3