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

Add become(...) action that replaces current fzf process

Close #3159
This commit is contained in:
Junegunn Choi
2023-02-11 20:21:10 +09:00
parent f7447aece1
commit 6ea38b4438
5 changed files with 56 additions and 7 deletions

View File

@@ -2643,6 +2643,13 @@ class TestGoFZF < TestBase
tmux.send_keys :Space
tmux.until { |lines| assert_includes lines, '/1/1/' }
end
def test_become
tmux.send_keys "seq 10 | #{FZF} --bind 'enter:become:seq 100 | #{FZF}'", :Enter
tmux.until { |lines| assert_equal 10, lines.item_count }
tmux.send_keys :Enter
tmux.until { |lines| assert_equal 100, lines.item_count }
end
end
module TestShell