You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{fzf:action} - The name of the last action performed
{fzf:prompt} - Prompt string (including ANSI color codes)
{fzf:query} - Synonym for {q}
Added support for negative height
# Terminal height minus 1, so you can still see the command line
fzf --height=-1
This handles a terminal resize better than --height=$(($(tput lines) - 1))
Added accept-or-print-query action that acts like accept but prints the current query when there's no match for the query
# You can make CTRL-R paste the current query when there's no matchexport FZF_CTRL_R_OPTS='--bind enter:accept-or-print-query'
Note that there are alternative ways to implement the same strategy
# 'become' is apparently more versatile but it's not available on Windows.export FZF_CTRL_R_OPTS='--bind "enter:become:if [ -z {} ]; then echo {q}; else echo {}; fi"'# Using the new 'transform' actionexport FZF_CTRL_R_OPTS='--bind "enter:transform:[ -z {} ] && echo print-query || echo accept"'