Add 'noinfo' option to hide scroll offset information in preview window
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run

fzf --preview 'seq 1000' --preview-window noinfo

Close #2525
This commit is contained in:
Junegunn Choi committed 2024-09-12 18:31:14 +09:00
1 parent 2286edb329
commit 952276dc2d
4 files changed
+23 -6

No files matched your search

+9
View File
@@ -3378,6 +3378,15 @@ class TestGoFZF < TestBase
assert_equal expected, result
end
end
def test_preview_window_noinfo
# │ 1 ││
tmux.send_keys %(#{FZF} --preview 'seq 1000' --preview-window top,noinfo --scrollbar), :Enter
tmux.until do |lines|
assert lines[1]&.start_with?('│ 1')
assert lines[1]&.end_with?(' ││')
end
end
end
module TestShell