m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

Add 'one' event

Close #2629
Close #2494
Close #459
This commit is contained in:
Junegunn Choi
2023-04-01 17:16:02 +09:00
parent 1c7534f009
commit 8ec917b1c3
6 changed files with 39 additions and 0 deletions

View File

@@ -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