In bash reverse-search, can I return the search query as-is? #3970
-
Here's what I'm doing, with my shell set up with
Is it possible to at any point abort the search returning current search-term as-is, perhaps a shortcut? |
Beta Was this translation helpful? Give feedback.
Answered by
simonschmidt
Aug 17, 2024
Replies: 1 comment 1 reply
-
See #3528 FWIW, fzf is fuzzy finder, you don't have to type the exact command in the prompt. Your query can be "fuzzy". e.g. Also, see https://junegunn.github.io/fzf/search-syntax/#how-to-get-better-results |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's almost exactly what I wanted, I just needed a small tweak to let me emit the query even if there are results:
Which let's me hit Ctrl+g at any point during the search.
Thanks for pointing me in the right direction with
FZF_CTRL_R_OPTS
!