Open Ajaymamtora opened 3 weeks ago
Hi @Ajaymamtora , I suppose we could support multiple globs in files filter by having one glob per line. Would that help? Given the amount of globs you have in the screenshot, it might just be better to continue using the Flags input… The files filter input was meant as a lightweight shortcut for most simple cases.
I'm trying to pass in a ripgrep set of globs for file filters.
For example, in the screenshot below I'm trying to include
.lua
and.toml
and exclude the.git
folder, but adding the exclusion for the git folder breaks the search. This is possible if I could provide 2 globs e.g.rg --glob '*.{lua,toml}' --glob '!.git/*' -- nvim
A potential solution could be to split the files filter into 2 section, 1 called Include files filter, the other Exclude files filter. This seems the cleanest and easiest to use.
You could also somehow update the current files filter to allow the user to define 2 globs?
I know I could continue to just use the flags and pass the glob below in the flags section, but it's im trying to filter files so would rather use its designated section.
I have a binding that opens grug with my telescope grep state: