Skip to content

How to show selected list items in preview window #3573

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

You must be logged in to vote
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

Try using placeholders with the --preview flag.
In your example, displaying all selected items from your list in the preview should work with the following flag:

# Run the command 'select' some items and notice the preview will show one selection per line.
# '{+f}' gives you the path to the temporary file where your selected lines are stored, thus the 'ca…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rbusfield
Comment options

You must be logged in to vote
0 replies
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