From b42f5bfb19b080eb12b886ec0787de47a069cc33 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 15 Jan 2025 23:40:42 +0900 Subject: [PATCH] Add --gap-line to --help output and man page --- man/man1/fzf.1 | 4 ++++ src/options.go | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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