diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-30 00:50:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 00:50:46 +0900 |
| commit | 6c0ca4a64a4e2f8697dfa830dcae56c1d7ddca51 (patch) | |
| tree | b3cb6eefec8009c815d0ce0a4bea3032f8bc0cf8 /test | |
| parent | 6b5d4614114f1a7a34a50c21ed2952f94a5ee81e (diff) | |
| download | fzf-6c0ca4a64a4e2f8697dfa830dcae56c1d7ddca51.tar.gz | |
Add --no-input to hide the input section (#4210)
Close #2890
Close #1396
You can't type in queries in this mode, and the only way to trigger an
fzf search is to use `search(...)` action.
# Click header to trigger search
fzf --header '[src] [test]' --no-input --layout reverse \
--header-border bottom --input-border \
--bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_layout.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_layout.rb b/test/test_layout.rb index dcfe1d78..6e844527 100644 --- a/test/test_layout.rb +++ b/test/test_layout.rb @@ -876,4 +876,19 @@ class TestLayout < TestInteractive BLOCK tmux.until { assert_block(block, _1) } end + + def test_min_height_auto_no_input + tmux.send_keys %(seq 100 | #{FZF} --style full:sharp --no-input --height 1% --min-height 5+), :Enter + + block = <<~BLOCK + ┌───────── + │ 5 + │ 4 + │ 3 + │ 2 + │ > 1 + └───────── + BLOCK + tmux.until { assert_block(block, _1) } + end end |
