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

How can I ignore a folder from the search? #210

Closed
kaiomagalhaes opened this issue Mar 26, 2017 · 1 comment
Closed

How can I ignore a folder from the search? #210

kaiomagalhaes opened this issue Mar 26, 2017 · 1 comment
Labels

Comments

@kaiomagalhaes
Copy link

I'm currently working with Golang and we have a vendors folder with all the libraries we are using on the project. I would like to ignore this folder when using ack.vim, is it possible? If so, how can I do it?

Thanks

@ches
Copy link
Collaborator

ches commented Apr 1, 2017

There are several ways to approach this. I suggest using the config files supported by the search tools, then there's nothing to do for ack.vim itself, it will Just Work.

If you're using Ack, it supports project-local config files. You can do this:

# your/project/dir/.ackrc
--ignore-dir=vendor

If you're using The Silver Searcher, it supports .ignore files in addition to .gitignore, in case your team wants to track vendor in Git but you want to ignore it with ag.

# your/project/dir/.ignore
vendor/

You can put .ignore in your global Git ignores (git help gitignore) so everyone on your projects doesn't have to care that you use ag.

Check the documentation/man pages of the tools for more details.

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

No branches or pull requests

2 participants