From e1e171a3c458b8bc7dc347cbbd89be30f490ffb8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 1 Feb 2025 11:12:59 +0900 Subject: Add toggle-bind --- test/test_core.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_core.rb b/test/test_core.rb index 5e47ef9d..893d040b 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -1174,8 +1174,8 @@ class TestCore < TestInteractive tmux.until { |lines| assert_equal 2, lines.select_count } end - def test_unbind_rebind - tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d),e:rebind(c,d)'", :Enter + def test_unbind_rebind_toggle_bind + tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d),e:rebind(c,d),f:toggle-bind(c)'", :Enter tmux.until { |lines| assert_equal 100, lines.match_count } tmux.send_keys 'ab' tmux.until { |lines| assert_equal '> ab', lines[-1] } @@ -1185,6 +1185,10 @@ class TestCore < TestInteractive tmux.until { |lines| assert_equal '> abcd', lines[-1] } tmux.send_keys 'ecabddc' tmux.until { |lines| assert_equal '> abdc', lines[-1] } + tmux.send_keys 'fcabfc' + tmux.until { |lines| assert_equal '> abc', lines[-1] } + tmux.send_keys 'fc' + tmux.until { |lines| assert_equal '>', lines[-1] } end def test_scroll_off -- cgit v1.2.3