m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 14:53:47 -05:00

Add 'best' action

This commit is contained in:
Junegunn Choi
2025-10-08 11:08:12 +09:00
parent edd08d5cc6
commit 7288daff07
5 changed files with 68 additions and 22 deletions

View File

@@ -102,4 +102,12 @@ class TestRaw < TestInteractive
assert_includes it, '▌ 25'
end
end
def test_raw_best
tmux.send_keys %(seq 1000 | #{FZF} --raw --bind space:best), :Enter
tmux.send_keys 999
tmux.until { assert_includes it, '> 1' }
tmux.send_keys :Space
tmux.until { assert_includes it, '> 999' }
end
end