rking / ag.vim

Vim plugin for the_silver_searcher, 'ag', a replacement for the Perl module / CLI script 'ack'
1.74k stars 131 forks source link

wildignore settings are ignored #62

Closed nobleach closed 10 years ago

nobleach commented 10 years ago

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.

losingkeys commented 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).

nobleach commented 10 years ago

Bummer. I'm I'm stuck with SVN. I'll explore other options. Thanks!

losingkeys commented 10 years ago

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.