How can I direct helm-projectile-ag and helm-projectile-grep to search for an exact string?

If I enclose a string in quotes, I get no results. If I don't, I get fuzzy matching.

1 Answer 1


Fuzzy matching should be switched off by default, but if you have a space character in your pattern it will turn fuzzy matching on.

If your query didn't have spaces, check your emacs config and make sure helm-ag-fuzzy-match isn't set to t.

For space characters in your pattern you should use the regex \s.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.