Closed nobleach closed 10 years ago
By default this plugin doesn't take into account 'wildignore'
settings. ag however should ignore what's in your .gitignore
or .hgignore
. There are still some bugs around this though (see this search for a few).
Bummer. I'm I'm stuck with SVN. I'll explore other options. Thanks!
Hmm... You can use .agignore
to ignore files. There might be a sneaky way to use vim autocmds to change the value of 'wildignore'
when vim starts (maybe with VimEnter
?) Anyway thanks for the report! We'll reopen if another maintainer wants to coordinate ag ignore stuff... though imo this is managed well enough by ag itself.
In my .vimrc I have
set wildignore+= _/nodemodules/, dist/*, foo, bar
Any time I use Ag to search for anything, results from dist show up. How can I get it to REALLY ignore that directory.