m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

Add 'load' event that is triggered when the input stream is complete

and the first search (with or without query) is complete
This commit is contained in:
Junegunn Choi
2022-12-29 20:01:50 +09:00
parent 44b6336372
commit 14775aa975
5 changed files with 40 additions and 4 deletions

View File

@@ -927,6 +927,15 @@ e.g.
\fB# Move cursor to the last item and select all items
seq 1000 | fzf --multi --sync --bind start:last+select-all\fR
.RE
\fIload\fR
.RS
Triggered when the input stream is complete and the initial processing of the
list is complete.
e.g.
\fB# Change the prompt to "loaded" when the input stream is complete
(seq 10; sleep 1; seq 11 20) | fzf --prompt 'Loading> ' --bind 'load:change-prompt:Loaded> '\fR
.RE
\fIchange\fR
.RS
Triggered whenever the query string is changed