mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Respecting wildignore #93

Closed daGrevis closed 10 years ago

daGrevis commented 11 years ago

Is it somehow possible for Ack.vim to respect wildignore? It would be really useful for me because my wildignore has like 20+ directories and it's pain to manually exclude all of them using --ignore-dir.

Maybe script that maps Ack to silently call Ack --ignore-dir=/foo/ --ignore-dir=/bar/ [..] based on contents of wildignore?

kassio commented 10 years ago

added on master. For wildignore=tmp,.*zip will add options: --ignore-dir=tmp --ignore-file=match:.zip

daGrevis commented 10 years ago

Awesomsauce!

daGrevis commented 10 years ago

Seems that this isn't working anymore. Anyway, .ackrc is so much better solution!

Here's an example. You can put it in your home or project root and it will find the closest one and use it.

daqo commented 7 years ago

It seems that wildignore options doesn't work anymore.