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

Add --gap option to put empty lines between items

This commit is contained in:
Junegunn Choi
2024-10-01 19:15:17 +09:00
parent 4161403a1d
commit 1a32220ca9
5 changed files with 105 additions and 21 deletions

View File

@@ -3392,6 +3392,40 @@ class TestGoFZF < TestBase
assert lines[1]&.end_with?('1000││')
end
end
def test_gap
tmux.send_keys %[seq 100 | #{FZF} --gap --border --reverse], :Enter
block = <<~BLOCK
>
100/100
> 1
2
3
4
BLOCK
tmux.until { assert_block(block, _1) }
end
def test_gap_2
tmux.send_keys %[seq 100 | #{FZF} --gap=2 --border --reverse], :Enter
block = <<~BLOCK
>
100/100
> 1
2
3
BLOCK
tmux.until { assert_block(block, _1) }
end
end
module TestShell