-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print Query if there is no match #1693
Comments
Then it's not clear if the printed line is the query or the selection, and we would need to define an arbitrary exit status for that specific case. A simpler way would be to use $ echo 1 | fzf --print-query -0 -1 | wc -l
2
$ : | fzf --print-query -0 -1 | wc -l
1 |
@junegunn [list] | fzf --print-query | tail -1 | xargs -r ... there doesn't appear to be such a simple solution to the problem if you use --print0 however, have to resort to actual scripts. is there a way to make fzf abstain from printing an empty line? |
|
Note that |
Is it possible to make fzf automatically print the query, only if there is no match found. This is the behaviour of other fuzzy finders such as dmenu and rofi.
Thanks for creating this tool!
The text was updated successfully, but these errors were encountered: