summaryrefslogtreecommitdiffstats
path: root/man/man1
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-02-19 01:12:57 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-02-19 01:12:57 +0900
commit6c32148f9020e222bae335fa823229715e067815 (patch)
tree402d0735161514145b32ca64e7962727d060a963 /man/man1
parent315e568de006e80138f79c77d5508c7e4853e6b2 (diff)
Add placeholder expression for zero-based item index: {n} and {+n}
Close #1482
Diffstat (limited to 'man/man1')
-rw-r--r--man/man1/fzf.14
1 files changed, 3 insertions, 1 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 68a387c2..2d00cb84 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -301,7 +301,9 @@ e.g. \fBfzf --multi --preview='head -10 {+}'\fR
When using a field index expression, leading and trailing whitespace is stripped
from the replacement string. To preserve the whitespace, use the \fBs\fR flag.
-Also, \fB{q}\fR is replaced to the current query string.
+Also, \fB{q}\fR is replaced to the current query string, and \fB{n}\fR is
+replaced to zero-based ordinal index of the line. Use \fB{+n}\fR if you want
+all index numbers when multiple lines are selected.
Note that you can escape a placeholder pattern by prepending a backslash.