summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-02-22 14:33:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-02-22 14:36:30 +0900
commit8dc1377efb140c40c7e121b29d9cedb52ad9ea9f (patch)
treea7ad4c0eb63da379a3865ce5369541ea02536ef2 /man
parent6c32148f9020e222bae335fa823229715e067815 (diff)
Export FZF_PREVIEW_LINES and FZF_PREVIEW_COLUMNS to preview process
fzf will still override LINES and COLUMNS as before but they may not hold the correct values depending on the default shell. Close #1314
Diffstat (limited to 'man')
-rw-r--r--man/man1/fzf.17
1 files changed, 5 insertions, 2 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 2d00cb84..305ff980 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -288,8 +288,11 @@ EXPRESSION\fR for the details).
e.g. \fBfzf --preview='head -$LINES {}'\fR
\fBls -l | fzf --preview="echo user={3} when={-4..-2}; cat {-1}" --header-lines=1\fR
-fzf overrides \fB$LINES\fR and \fB$COLUMNS\fR so that they represent the exact
-size of the preview window.
+fzf exports \fB$FZF_PREVIEW_LINES\fR and \fB$FZF_PREVIEW_COLUMNS\fR so that
+they represent the exact size of the preview window. (It also overrides
+\fB$LINES\fR and \fB$COLUMNS\fR with the same values but they can be reset
+by the default shell, so prefer to refer to the ones with \fBFZF_PREVIEW_\fR
+prefix.)
A placeholder expression starting with \fB+\fR flag will be replaced to the
space-separated list of the selected lines (or the current line if no selection