jremmen / vim-ripgrep

Use RipGrep in Vim and display results in a quickfix list
MIT License
541 stars 99 forks source link

In vim calling Rg with -g "!*/" will not ignore system folder #31

Open ar1xwe opened 5 years ago

ar1xwe commented 5 years ago

OS : Windows 10

In command line

rg -g ".c" -g "!/" "foo"

It search all "*.c' file with pattern "foo" non-recursively but in vim, it would not ignore the "System Volume Information" folder

Try to resolve 1

I did try to append more hidden folder and put file into it, but those folders would just bypassed by the glob flag -g "!*/".

Try to resolve 2

Use wildignore to affect vim to ignore "System Volume Information" folder

set wildignore+=./System\ Volume\ Information set wildignore+=System\ Volume\ Information

it still not working.

So...is it a issue from vimgrep or vim-rg?


This issue matter a lot. This issue happen on Windows's System Files too. AND ~ Sometimes the "OS Error" string will ruin the layout of QuickFix and then you'll fail to jump. and of course the "OS Error" is from "System Volume Information"