summaryrefslogtreecommitdiffstats
path: root/man/man1/fzf.1
diff options
context:
space:
mode:
Diffstat (limited to 'man/man1/fzf.1')
-rw-r--r--man/man1/fzf.17
1 files changed, 6 insertions, 1 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 486a0ad8..d4388940 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -442,7 +442,7 @@ e.g.
done'\fR
.RE
.TP
-.BI "--preview-window=" "[POSITION][:SIZE[%]][:rounded|sharp|noborder][:[no]wrap][:[no]follow][:[no]cycle][:[no]hidden][:+SCROLL[-OFFSET]][:default]"
+.BI "--preview-window=" "[POSITION][:SIZE[%]][:rounded|sharp|noborder][:[no]wrap][:[no]follow][:[no]cycle][:[no]hidden][:+SCROLL[-OFFSET]][:~HEADER_LINES][:default]"
.RS
.B POSITION: (default: right)
@@ -487,6 +487,9 @@ for adjusting the base offset so that you can see the text above it. It should
be given as a numeric integer (\fB-INTEGER\fR), or as a denominator form
(\fB-/INTEGER\fR) for specifying a fraction of the preview window height.
+* \fB~HEADER_LINES\fR keeps the top N lines as the fixed header so that they
+are always visible.
+
* \fBdefault\fR resets all options previously set to the default.
.RS
@@ -506,6 +509,8 @@ e.g.
--preview 'bat --style=numbers --color=always --highlight-line {2} {1}' \\
--preview-window +{2}-/2\fR
+ # Display top 3 lines as the fixed header
+ fzf --preview 'bat --style=header,grid --color=always {}' --preview-window '~3'
.RE
.SS Scripting