-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Make counsel-fzf accept multiple search terms #1544
Comments
Please give me a sample full command line input. I'm getting now:
|
If I make a directory that contains the following files: foo # 1)
foo_bar # 2)
foo_bar_baz # 3) Then I can do the following searches fzf -f "foo" #finds all three files
fzf -f "foo bar" # finds 2) and 3)
fzf -f "foo baz" # finds 3)
fzf -f "\!bar" # finds 1) When using fzf without the -f flag, but instead through the default ctrl-t command then the exclamation doesn't need to be escaped, I don't know if that is possible to integrate in counsel-fzf, otherwise escaping it manually is not that hard :) |
Thanks, please test. |
Nice fix! Works like fzf in the terminal now, that's awesome :) |
As an avid user of fzf in the terminal and vim I would love to see the possibility of counsel-fzf accepting multiple search terms.
As described on https://github.com/junegunn/fzf
"Unless otherwise specified, fzf starts in "extended-search mode" where you can type in multiple search terms delimited by spaces. e.g. ^music .mp3$ sbtrkt !fire "
This makes it possible to fuzzy match against multiple search terms and also specify match types such as ! for inverse exact match.
Currently counsel-fzf prints "error code 2" when multiple search terms are inserted with a space as delimiter.
The text was updated successfully, but these errors were encountered: