Add --gap option to put empty lines between items

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

No files matched your search

+34
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