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

Add {show,hide,toggle}-input and expose $FZF_INPUT_STATE

This commit is contained in:
Junegunn Choi
2025-02-01 11:16:16 +09:00
parent e1e171a3c4
commit e84afe196a
9 changed files with 156 additions and 81 deletions

View File

@@ -623,7 +623,9 @@ Position of the list label
.TP
.B "\-\-no\-input"
Disable and hide the input section. You can no longer type in queries. To
trigger a search, use \fBsearch\fR action.
trigger a search, use \fBsearch\fR action. You can later show the input section
using \fBshow\-input\fR or \fBtoggle\-input\fR action, and hide it again using
\fBhide\-input\fR, or \fBtoggle\-input\fR.
.TP
.BI "\-\-prompt=" "STR"
@@ -1222,6 +1224,8 @@ fzf exports the following environment variables to its child processes.
.br
.BR FZF_QUERY " Current query string"
.br
.BR FZF_INPUT_STATE " Current input state (enabled, disabled, hidden)"
.br
.BR FZF_NTH " Current \-\-nth option"
.br
.BR FZF_PROMPT " Prompt string"
@@ -1610,6 +1614,7 @@ A key or an event can be bound to one or more of the following actions.
\fBhalf\-page\-down\fR
\fBhalf\-page\-up\fR
\fBhide\-header\fR
\fBhide\-input\fR
\fBhide\-preview\fR
\fBoffset\-down\fR (similar to CTRL\-E of Vim)
\fBoffset\-up\fR (similar to CTRL\-Y of Vim)
@@ -1638,6 +1643,7 @@ A key or an event can be bound to one or more of the following actions.
\fBselect\fR
\fBselect\-all\fR (select all matches)
\fBshow\-header\fR
\fBshow\-input\fR
\fBshow\-preview\fR
\fBtoggle\fR (\fIright\-click\fR)
\fBtoggle\-all\fR (toggle all matches)
@@ -1646,6 +1652,7 @@ A key or an event can be bound to one or more of the following actions.
\fBtoggle\-bind\fR
\fBtoggle\-header\fR
\fBtoggle\-hscroll\fR
\fBtoggle\-input\fR
\fBtoggle\-multi\-line\fR
\fBtoggle\-preview\fR
\fBtoggle\-preview\-wrap\fR