diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-01-07 17:44:49 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-01-07 17:46:21 +0900 |
commit | 250496c953f8e36cb70ca99d58034bd79a1d0670 (patch) | |
tree | f4cb2223052921cbb78c01f6fe4f645d0c8e9c21 /man/man1 | |
parent | e47dc758c90fc151ef86dc5f189fdea19383d962 (diff) |
Add 'result' event that is triggered when the result list is ready
Close #3560
Diffstat (limited to 'man/man1')
-rw-r--r-- | man/man1/fzf.1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index e39f6ddd..905f6774 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -1075,6 +1075,15 @@ 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 +\fIresult\fR +.RS +Triggered when the filtering for the current query is complete and the result list is ready. + +e.g. + \fB# Put the cursor on the second item when the query string is empty + # * Note that you can't use 'change' event in this case because the second position may not be available + fzf --sync --bind 'result:transform:[[ -z {fzf:query} ]] && echo "pos(2)"'\fR +.RE \fIchange\fR .RS Triggered whenever the query string is changed |