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
.gitignore not being properly parsed #1402
Comments
Here's a "me too!" from me. I ran into this issue and found this page via google. |
Just hit this today and though not ideal the |
Yup it is / was. I moved onto ripgrep which parses globs properly in a hierarchical manner. And it's faster I think: certainly I had more success inside emacs with counsel-ripgrep over other implementations. |
This is not the only problem with .gitignore. I'm finding if I have a path starting with '/' (eg, '/node_modules') and I run 'ag' from the same directory as the .gitignore, it correctly ignore the node_modules folder. However if I run the same query from the parent directory, it misinterprets the '/node_modules' and proceeds to scan the '/repo/node_modules' folder. I would expect a path starting with a '/' in a .gitignore (or any ignore file) would implicitly mean Does this make sense? |
Sorry for hijacking this, but for me, Apparently for you it works without the link? Could you quickly confirm? |
If I use the "!" notation to reinclude subdirectories ag doesn't cope.
eg my .gitignore
ag will not search editor-config. This is quite a major issue preventing me using helm-ag instead of helm-rg.
The text was updated successfully, but these errors were encountered: