summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-10-08 11:08:12 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-10-09 00:17:00 +0900
commitd19ce0ad8d68ed71fb24ae3287b847186d3a228e (patch)
tree7bb59fdbb9a5d006edbdf2d9f7269855ecfe6b26 /test
parented7becfb4768245f8c76325d86276940df07472e (diff)
downloadfzf-d19ce0ad8d68ed71fb24ae3287b847186d3a228e.tar.gz
Add 'best' action
Diffstat (limited to 'test')
-rw-r--r--test/test_raw.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_raw.rb b/test/test_raw.rb
index 63b62cc7..f063a90a 100644
--- a/test/test_raw.rb
+++ b/test/test_raw.rb
@@ -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