+default/search-project doesn’t let me exclude certain file types or negate matches, like so:
What did you expect to happen?
+default/search-project should allow me to filter searches with more granularity.
Steps to reproduce
SPC/ or SPCsp.
- Type in
- See no results.
Loading data dump...
Use ripgrep switches before or after
#-t lua -- test or
#test -- -t lua. I’ll use the latter for examples below.
To only search lua files:
#test -- -t lua. Run
$ rg --type-list for comprehensive list of types that Ripgrep supports.
To search any file that matches a glob:
#test -- -g*.tar.gz
To search for
test, but filter out results with
cd in it, use consult’s sub-search feature:
Everything before the second
# is filtered by ripgrep.
Everything after the second
# is filtered by Vertico using Orderless, where
% (case insensitive) prefixes are supported.
# delimiter can be replaced with any arbitrary character. E.g.
I want to find all Chinese in the project by regular expression
#-e [\u4e00-\u9fa5] or
#-- -e [\u4e00-\u9fa5]
but not work
plz help me