summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-04-01 17:16:02 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-04-01 17:25:47 +0900
commit8ec917b1c36ed1cf6ace64419307aa85fda4bee3 (patch)
tree74d6f5e0e59a82ad13f0d51cd51aa8ee34c36025 /man
parent1c7534f00966edca7c44054af199ca27aca0a80c (diff)
Add 'one' event
Close #2629 Close #2494 Close #459
Diffstat (limited to 'man')
-rw-r--r--man/man1/fzf.111
1 files changed, 11 insertions, 0 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 7d5ea73e..4d958014 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -993,6 +993,17 @@ e.g.
# Beware not to introduce an infinite loop
seq 10 | fzf --bind 'focus:up' --cycle\fR
.RE
+\fIone\fR
+.RS
+Triggered when there's only one match. \fBone:accept\fR binding is comparable
+to \fB--select-1\fR option, but the difference is that \fB--select-1\fR is only
+effective before the interactive finder starts but \fBone\fR event is triggered
+by the interactive finder.
+
+e.g.
+ \fB# Automatically select the only match
+ seq 10 | fzf --bind one:accept\fR
+.RE
\fIbackward-eof\fR
.RS