Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make counsel-fzf accept multiple search terms #1544
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
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.
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 :)