Add environment variables: FZF_{BORDER,PREVIEW}_LABEL (#3693)

The environment variable get the value of the preview label, even if it
has been updated with an action. It can be useful to track the label of
the preview and be able to switch between previews using only one
binding.

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
Matthieu CneudeandJunegunn Choi authored and GitHub committed 2024-03-29 16:14:08 +09:00
1 parent 8a74976c1f
commit f625c5aabe
4 files changed
+44 -2

No files matched your search

+4
View File
@@ -975,6 +975,10 @@ fzf exports the following environment variables to its child processes.
.br
.BR FZF_PROMPT " Prompt string"
.br
.BR FZF_PREVIEW_LABEL " Preview label string"
.br
.BR FZF_BORDER_LABEL " Border label string"
.br
.BR FZF_ACTION " The name of the last action performed"
.br
.BR FZF_PORT " Port number when --listen option is used"