diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2021-03-12 19:51:28 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-03-12 20:32:27 +0900 |
commit | 4c4c6e626e48575602d7ee86fb9a8ee0816a0a11 (patch) | |
tree | 9f8a890cfe426f51d8066201c5f5d05a7f4d3aa5 /man | |
parent | 7310370a31fd7f4735caaebdc270578355119c3b (diff) |
Add support for preview window header
Fix #2373
# Display top 3 lines as the fixed header
fzf --preview 'bat --style=header,grid --color=always {}' --preview-window '~3'
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/fzf.1 | 7 |
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 |