From 4efcc344c35e8bb7e6ba7bb23e5885051420b361 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 23 Jul 2025 19:39:01 +0900 Subject: Add 'trigger(KEY_OR_EVENT[,...])' action --- test/test_core.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/test_core.rb b/test/test_core.rb index 4d21c19c..17578baf 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -2035,4 +2035,14 @@ class TestCore < TestInteractive assert_equal 19, it.select_count end end + + def test_trigger + tmux.send_keys %(seq 100 | #{FZF} --bind 'a:up+trigger(a),b:trigger(a,a,b,a)'), :Enter + tmux.until { assert_equal 100, it.match_count } + tmux.until { |lines| assert_includes lines, '> 1' } + tmux.send_keys :a + tmux.until { |lines| assert_includes lines, '> 3' } + tmux.send_keys :b + tmux.until { |lines| assert_includes lines, '> 9' } + end end -- cgit v1.2.3