m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

Add nowrap, nocycle, nohidden for --preview-window

Close #2203
This commit is contained in:
Junegunn Choi
2020-10-09 21:56:16 +09:00
parent d9752a4c21
commit 865144850d
4 changed files with 16 additions and 24 deletions

View File

@@ -381,7 +381,7 @@ Preview window will be updated even when there is no match for the current
query if any of the placeholder expressions evaluates to a non-empty string.
.RE
.TP
.BI "--preview-window=" "[POSITION][:SIZE[%]][:rounded|sharp|noborder][:wrap][:cycle][:hidden][:+SCROLL[-OFFSET]]"
.BI "--preview-window=" "[POSITION][:SIZE[%]][:rounded|sharp|noborder][:[no]wrap][:[no]cycle][:[no]hidden][:+SCROLL[-OFFSET]]"
.RS
.B POSITION: (default: right)
@@ -430,18 +430,6 @@ e.g.
.RE
You can write style-related flags across multiple \fB--preview-window\fR
options. But flags that are not style-related such as \fBhidden\fR and scroll
offset are only allowed in the last \fB--preview-window\fR.
.RS
e.g.
export FZF_DEFAULT_OPTS='--preview-window sharp:cycle'
# sharp + cycle + up + 50%
fzf --preview-window 'up' --preview-window '50%' --preview 'bat {}'
.RE
.SS Scripting
.TP
.BI "-q, --query=" "STR"