Add --preview-window=next position

Places preview adjacent to input on the list side: above input in the
default layout, below it in --layout=reverse.

  fzf --preview 'cat {}' --preview-window=next

Close #4798
This commit is contained in:
Junegunn Choi
2026-05-21 20:29:37 +09:00
parent 67319aed0b
commit b6347a9498
5 changed files with 344 additions and 153 deletions
+5
View File
@@ -993,9 +993,14 @@ border line.
\fBdown
\fBleft
\fBright
\fBnext
\fRDetermines the layout of the preview window.
* \fBnext\fR places the preview window adjacent to the input section, on
the list side: above the input in the default layout, below the input
in \fB\-\-layout=reverse\fR.
* If the argument contains \fB:hidden\fR, the preview window will be hidden by
default until \fBtoggle\-preview\fR action is triggered.