Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to ignore files from the 'wildignore' option #67

Open
losingkeys opened this issue Aug 8, 2014 · 8 comments · May be fixed by #77
Open

Option to ignore files from the 'wildignore' option #67

losingkeys opened this issue Aug 8, 2014 · 8 comments · May be fixed by #77

Comments

@losingkeys
Copy link
Collaborator

Plugins like ctrlp and vinegar take into account the 'wildignore' option, which makes them show more relevant results more quickly. I think we should add an option for this, and turn it on by default (though the default is probably up for discussion).

@rapind
Copy link

rapind commented Aug 18, 2014

I would love this. How are others getting around polluting their results with logs, temp files, etc.?

@losingkeys
Copy link
Collaborator Author

the_silver_searcher takes into account .gitignore files and
.hgignore files. I think there are still some issues around paths like
log/ not being ignored when they should be. The reason to add this
(IMO) is because it makes this plugin more consistent with other vim
plugins (like vim-vinegar and ctrlp.vim).

On Mon, Aug 18, 2014 at 01:57:11PM -0700, Dave Rapin wrote:

I would love this. How are others getting around polluting their results with logs, temp files, etc.?


Reply to this email directly or view it on GitHub:
#67 (comment)

@rapind
Copy link

rapind commented Aug 19, 2014

That was super helpful thanks. Sorry to sidetrack the thread.

@losingkeys
Copy link
Collaborator Author

Not at all, comments welcome :)

On Mon, Aug 18, 2014 at 05:15:38PM -0700, Dave Rapin wrote:

That was super helpful thanks. Sorry to sidetrack the thread.


Reply to this email directly or view it on GitHub:
#67 (comment)

@jottr
Copy link

jottr commented Oct 28, 2014

Oh please, oh please, somebody implement this.
This would be especially useful when having a ./vendor directory in a project, where ag returns lots of "useless" results.
👍

@raine
Copy link

raine commented Dec 8, 2014

I'm using project specific .vimrc's with

let g:agprg='ag -S --nocolor --nogroup --column --ignore node_modules --ignore "./public/stylesheets/*"'

Ideally you'd set stuff before --ignore parameters in .vimrc and concatenate the ignores.

@losingkeys losingkeys linked a pull request Dec 20, 2014 that will close this issue
ches pushed a commit to ches/ag.vim that referenced this issue Feb 7, 2015
ches pushed a commit to ches/ag.vim that referenced this issue Feb 7, 2015
@webduvet
Copy link

it should be possible to drop .ignore file with the pattern or even .agignore in your $HOME folder

@krehwell
Copy link

making like this in my .vimrc solve my problem:

let s:ag_options = ' --one-device --skip-vcs-ignores --smart-case --ignore node_modules'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants