m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Allow actions to multiple keys and events at once

Close #4206
This commit is contained in:
Junegunn Choi
2025-01-27 01:46:21 +09:00
parent e91f10ab16
commit 80da0776f8
4 changed files with 36 additions and 27 deletions

View File

@@ -418,9 +418,9 @@ class TestCore < TestInteractive
end
def test_bind
tmux.send_keys "seq 1 1000 | #{fzf('-m --bind=ctrl-j:accept,u:up,T:toggle-up,t:toggle')}", :Enter
tmux.send_keys "seq 1 1000 | #{fzf('-m --bind=ctrl-j:accept,u,U:up,X,Y,Z:toggle-up,t:toggle')}", :Enter
tmux.until { |lines| assert_equal ' 1000/1000 (0)', lines[-2] }
tmux.send_keys 'uuu', 'TTT', 'tt', 'uu', 'ttt', 'C-j'
tmux.send_keys 'uUu', 'XYZ', 'tt', 'uu', 'ttt', 'C-j'
assert_equal %w[4 5 6 9], fzf_output_lines
end