summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-15 23:40:42 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-15 23:40:42 +0900
commitb42f5bfb19b080eb12b886ec0787de47a069cc33 (patch)
tree5ce656933f4c5be4b100d13b4101445d9ca10c06
parent717562b264a49a25c8b934d174e959b33bd02681 (diff)
downloadfzf-b42f5bfb19b080eb12b886ec0787de47a069cc33.tar.gz
Add --gap-line to --help output and man page
-rw-r--r--man/man1/fzf.14
-rw-r--r--src/options.go5
2 files changed, 8 insertions, 1 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 85cc28f9..d848d0e9 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -543,6 +543,10 @@ e.g.
.BI "\-\-gap" "[=N]"
Render empty lines between each item
.TP
+.BI "\-\-gap\-line" "[=STR]"
+The given string will be repeated to draw a horizontal line on each gap
+(default: '┈' or '\-' depending on \fB\-\-no\-unicode\fR).
+.TP
.B "\-\-keep\-right"
Keep the right end of the line visible when it's too long. Effective only when
the query string is empty.
diff --git a/src/options.go b/src/options.go
index 470d3081..87ec9e6f 100644
--- a/src/options.go
+++ b/src/options.go
@@ -97,6 +97,8 @@ Usage: fzf [options]
--track Track the current selection when the result is updated
--tac Reverse the order of the input
--gap[=N] Render empty lines between each item
+ --gap-line[=STR] Draw horizontal line on each gap using the string
+ (default: '┈' or '-')
--keep-right Keep the right end of the line visible on overflow
--scroll-off=LINES Number of screen lines to keep above or below when
scrolling to the top or to the bottom (default: 0)
@@ -127,7 +129,8 @@ Usage: fzf [options]
--info=STYLE Finder info style
[default|right|hidden|inline[-right][:PREFIX]]
--info-command=COMMAND Command to generate info line
- --separator=STR String to form horizontal separator on info line
+ --separator=STR Draw horizontal separator on info line using the string
+ (default: '─' or '-')
--no-separator Hide info line separator
--filepath-word Make word-wise movements respect path separators
--input-border[=STYLE] Draw border around the input section