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

Add 'start' event that is triggered once when fzf finder starts

Close #1622
This commit is contained in:
Junegunn Choi
2022-10-27 00:33:05 +09:00
parent 170fc517d0
commit 168829b555
6 changed files with 39 additions and 2 deletions

View File

@@ -2332,6 +2332,14 @@ class TestGoFZF < TestBase
OUTPUT
tmux.until { assert_block(expected, _1) }
end
def test_start_event
tmux.send_keys 'seq 100 | fzf --multi --sync --preview-window border-none --bind "start:select-all+last+preview(echo welcome)"', :Enter
tmux.until do |lines|
assert_match(/>100.*welcome/, lines[0])
assert_includes(lines[-2], '100/100 (100)')
end
end
end
module TestShell