summaryrefslogtreecommitdiffstats
path: root/man/man1/fzf.1
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-12-27 01:01:06 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-12-27 01:08:42 +0900
commit12af069dcad672b1563388c61ec33ba8a86c013e (patch)
tree887acd14cfe3ee74b6e181129765e27d9660fcb6 /man/man1/fzf.1
parentd42e708d3140aab099b30014a9cbebafb8b66692 (diff)
Add pos(...) action to move the cursor to the numeric position
# Put the cursor on the 10th item seq 100 | fzf --sync --bind 'start:pos(10)' # Put the cursor on the 10th to last item seq 100 | fzf --sync --bind 'start:pos(-10)' Close #3069 Close #395
Diffstat (limited to 'man/man1/fzf.1')
-rw-r--r--man/man1/fzf.15
1 files changed, 3 insertions, 2 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 6c71f147..17c7dd21 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -979,7 +979,7 @@ A key or an event can be bound to one or more of the following actions.
\fBend-of-line\fR \fIctrl-e end\fR
\fBexecute(...)\fR (see below for the details)
\fBexecute-silent(...)\fR (see below for the details)
- \fBfirst\fR (move to the first match)
+ \fBfirst\fR (move to the first match; same as \fBpos(1)\fR)
\fBforward-char\fR \fIctrl-f right\fR
\fBforward-word\fR \fIalt-f shift-right\fR
\fBignore\fR
@@ -987,13 +987,14 @@ A key or an event can be bound to one or more of the following actions.
\fBjump-accept\fR (jump and accept)
\fBkill-line\fR
\fBkill-word\fR \fIalt-d\fR
- \fBlast\fR (move to the last match)
+ \fBlast\fR (move to the last match; same as \fBpos(-1)\fR)
\fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)
\fBnext-selected\fR (move to the next selected item)
\fBpage-down\fR \fIpgdn\fR
\fBpage-up\fR \fIpgup\fR
\fBhalf-page-down\fR
\fBhalf-page-up\fR
+ \fBpos(...)\fR (move cursor to the numeric position; negative number to count from the end)
\fBprev-history\fR (\fIctrl-p\fR on \fB--history\fR)
\fBprev-selected\fR (move to the previous selected item)
\fBpreview(...)\fR (see below for the details)