Skip to content

wrap prompt line #3653

Answered by LangLangBart
rodhash asked this question in Q&A
Mar 3, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

wrap prompt line
Any way we can enable this?

I believe this feature does not currently exist.

Ideas?

One alternative solution could be to assign a hotkey that alters the preview to display the 'prompt'
in the preview.

By 'prompt', I assume you're referring to the 'query input', correct?

# Generate a random string
long_query=$(LC_ALL=C tr -dc "[:alnum:]" </dev/urandom | head -c 400)
# '{q}' serves as a placeholder for the current query -  see 'man fzf' for further details
: | fzf --query=$long_query --bind 'ctrl-t:change-preview:echo {q}' --preview-window 'wrap'

Upon pressing ⌃ Control + T, the preview will show the current 'query input'.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rodhash
Comment options

@rodhash
Comment options

@rodhash
Comment options

Answer selected by rodhash
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