summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-06-19 12:39:31 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-06-19 12:39:31 +0900
commit16d338da84dda718935c46cbbc54c8c3be9e21a2 (patch)
treecf88b197ec03c17e15d3eb8abcd3da09a77ca37a /man
parent27258f720723d5de32d483fb6b9ff39608ff9cf9 (diff)
downloadfzf-16d338da84dda718935c46cbbc54c8c3be9e21a2.tar.gz
Revert "Add {*} placeholder flag"
This reverts commit 27258f720723d5de32d483fb6b9ff39608ff9cf9.
Diffstat (limited to 'man')
-rw-r--r--man/man1/fzf.112
1 files changed, 5 insertions, 7 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index df2fba5f..a64b5e0d 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -789,16 +789,13 @@ fzf also exports \fB$FZF_PREVIEW_TOP\fR and \fB$FZF_PREVIEW_LEFT\fR so that
the preview command can determine the position of the preview window.
A placeholder expression starting with \fB+\fR flag will be replaced to the
-space-separated list of the selected items (or the current item if no selection
+space-separated list of the selected lines (or the current line if no selection
was made) individually quoted.
e.g.
\fBfzf \-\-multi \-\-preview='head \-10 {+}'
git log \-\-oneline | fzf \-\-multi \-\-preview 'git show {+1}'\fR
-Similarly, a placeholder expression starting with \fB*\fR flag will be replaced
-to the space-separated list of all matched items individually quoted.
-
Each expression expands to a quoted string, so that it's safe to pass it as an
argument to an external command. So you should not manually add quotes around
the curly braces. But if you don't want this behavior, you can put
@@ -810,13 +807,14 @@ from the replacement string. To preserve the whitespace, use the \fBs\fR flag.
A placeholder expression with \fBf\fR flag is replaced to the path of
a temporary file that holds the evaluated list. This is useful when you
-pass a large number of items and the length of the evaluated string may
+multi-select a large number of items and the length of the evaluated string may
exceed \fBARG_MAX\fR.
e.g.
- \fB# See the sum of all the matched numbers
+ \fB# Press CTRL\-A to select 100K items and see the sum of all the numbers.
# This won't work properly without 'f' flag due to ARG_MAX limit.
- seq 100000 | fzf \-\-preview "awk '{sum+=\\$1} END {print sum}' {*f}"\fR
+ seq 100000 | fzf \-\-multi \-\-bind ctrl\-a:select\-all \\
+ \-\-preview "awk '{sum+=\\$1} END {print sum}' {+f}"\fR
Also,