fzy

terminal fuzzy finder picker

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

commit 7cb9d9d7387d49022492565d6f54f8bb52aaecd7
parent 8177d50e17ba4df6c15c6ab2181e6d44f6711fe4
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Sun, 13 Aug 2017 07:27:39 -0700

Add acceptance test for bracketed paste characters

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

diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb @@ -288,6 +288,16 @@ class FzyTest < Minitest::Test @tty.assert_matches "before\nfoo\nafter" end + # More info; + # https://github.com/jhawthorn/fzy/issues/42 + # https://cirw.in/blog/bracketed-paste + def test_bracketed_paste_characters + @tty = TTYtest.new_terminal(%{echo -n "foo\nbar" | #{FZY_PATH}}) + @tty.assert_matches ">\nfoo\nbar" + @tty.send_keys("\e[200~foo\e[201~") + @tty.assert_matches "> foo\nfoo" + end + def test_help @tty = TTYtest.new_terminal(%{#{FZY_PATH} --help}) @tty.assert_matches <<TTY