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

@@ -1,6 +1,21 @@
CHANGELOG
=========
0.56.0
------
- Added `--gap[=N]` option to display empty lines between items.
- This can be useful to visually separate adjacent multi-line items.
```sh
# All bash functions, highlighted
declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
bat --plain --language bash --color always |
fzf --read0 --ansi --reverse --multi --highlight-line --gap
```
- Or just to make the list easier to read. For single-line items, you probably want to set `--color gutter:-1` as well to hide the gutter.
```sh
fzf --gap --color gutter:-1
```
0.55.0
------
_Release highlights: https://junegunn.github.io/fzf/releases/0.55.0/_