fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit 19e0d195d2e9635b879af466f9c7c73380234496
parent dfbc1e2732d106de6a6710cafb887ed22b4a830c
Author: John Hawthorn <john@hawthorn.email>
Date:   Sun, 17 Jun 2018 11:48:06 -0700

Add test for user input coming before choices read

Diffstat:
Mtest/acceptance/acceptance_test.rb | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb @@ -320,6 +320,13 @@ class FzyTest < Minitest::Test @tty.assert_matches "> foo\nfoo" end + # https://github.com/jhawthorn/fzy/issues/81 + def test_slow_stdin_fast_user + @tty = TTYtest.new_terminal(%{(echo aa; echo bc; echo bd; sleep 0.5) | #{FZY_PATH}}) + @tty.send_keys("b\r") + @tty.assert_matches "bc" + end + def test_help @tty = TTYtest.new_terminal(%{#{FZY_PATH} --help}) @tty.assert_matches <<TTY