Skip to content

toggle preview between selection and file preview #3574

Answered by LangLangBart
rbusfield asked this question in Q&A
Discussion options

You must be logged in to vote

As of fzf version 0.45.0, the {fzf:preview-label} is not a valid placeholder.

Placeholder Description
{} current line
{n} current line number (zero index)
{q} /{fzf:query} current query
{fzf:prompt} current prompt
{fzf:action} name of the last action performed
Placeholder expression flags Description
+ space-separated list of the selected lines
f temporary file
s preserve whitespace

The {fzf:prompt} was added so that users could use it as a state1, instead of creating an external file. There's also a discussion about changing the {fzf:prompt} to $FZF_PROMPT in the next version2. If you prefer not to use the {fzf:prompt}, you might need to use an external fi…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@LangLangBart
Comment options

Answer selected by rbusfield
@rbusfield
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants