diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-06-21 22:41:33 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-06-21 22:41:33 +0900 |
commit | 17dd833925d31c5811bd465229e57d23c0772687 (patch) | |
tree | 24786217b2c532af78c8a82321921871a852e806 /man | |
parent | c33258832eeb855c0a269980aef89c37a7e13d6a (diff) |
Add preview action for --bind
Fix #2010
Fix #1638
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/fzf.1 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index d1257c84..3e7b1ee7 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -690,6 +690,7 @@ A key or an event can be bound to one or more of the following actions. \fBpage-up\fR \fIpgup\fR \fBhalf-page-down\fR \fBhalf-page-up\fR + \fBpreview(...)\fR (see below for the details) \fBpreview-down\fR \fIshift-down\fR \fBpreview-up\fR \fIshift-up\fR \fBpreview-page-down\fR @@ -783,6 +784,24 @@ e.g. fzf --bind "change:reload:$RG_PREFIX {q} || true" \\ --ansi --phony --query "$INITIAL_QUERY"\fR +.SS PREVIEW BINDING + +With \fBpreview(...)\fR action, you can specify multiple different preview +commands in addition to the default preview command given by \fB--preview\fR +option. + +e.g. + + # Default preview command with an extra preview binding + fzf --preview 'file {}' --bind '?:preview:cat {}' + + # A preview binding with no default preview command + # (Preview window is initially empty) + fzf --bind '?:preview:cat {}' + + # Preview window hidden by default, it appears when you first hit '?' + fzf --bind '?:preview:cat {}' --preview-window hidden + .SH AUTHOR Junegunn Choi (\fIjunegunn.c@gmail.com\fR) |