diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-02-11 20:21:10 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-02-11 20:26:31 +0900 |
commit | 6ea38b44384e7a09a3863465dc3cc7b93cd7e781 (patch) | |
tree | 38168bbc474e1defd9d177b9089c80aaba1cc330 /man | |
parent | f7447aece12f9b95133b803d5c4f71815bee8ca6 (diff) |
Add become(...) action that replaces current fzf process
Close #3159
Diffstat (limited to 'man')
-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 3ce32bec..873e3485 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -999,6 +999,7 @@ A key or an event can be bound to one or more of the following actions. \fBbackward-delete-char/eof\fR (same as \fBbackward-delete-char\fR except aborts fzf if query is empty) \fBbackward-kill-word\fR \fIalt-bs\fR \fBbackward-word\fR \fIalt-b shift-left\fR + \fBbecome(...)\fR (replace fzf process with the specified command; see below for the details) \fBbeginning-of-line\fR \fIctrl-a home\fR \fBcancel\fR (clear query string if not empty, abort fzf otherwise) \fBchange-border-label(...)\fR (change \fB--border-label\fR to the given string) @@ -1143,6 +1144,14 @@ On *nix systems, fzf runs the command with \fB$SHELL -c\fR if \fBSHELL\fR is set, otherwise with \fBsh -c\fR, so in this case make sure that the command is POSIX-compliant. +\fBbecome(...)\fR action is similar to \fBexecute(...)\fR, but it replaces the +current fzf process with the specifed command using \fBexecve(2)\fR system +call. + + \fBfzf --bind "enter:become(vim {})"\fR + +\fBbecome(...)\fR is not supported on Windows. + .SS RELOAD INPUT \fBreload(...)\fR action is used to dynamically update the input list |