helm-projectile icon indicating copy to clipboard operation
helm-projectile copied to clipboard

projectile-helm-ag doesn't respect .gitignore file

Open mydearxym opened this issue 8 years ago • 6 comments

In a git project, projectile-helm-ag searches files and directories in .gitignore.

see https://github.com/bbatsov/projectile/issues/709

mydearxym avatar May 11 '16 10:05 mydearxym

Any updates on this issue?

Cbeck527 avatar Aug 26 '16 21:08 Cbeck527

I came across this bug. In my case, it only respects the top most .gitignore. If I have a .gitignore inside some directory with additional rules, then those files are not excluded from the search.

/root
 - .git
 - .gitignore //// these rules are respected
 - /some-dir
    - .gitignore //// the rules here are not respected

For the time being I copied the rules over from the inner gitignore to the outer one.

amithgeorge avatar Jan 09 '17 12:01 amithgeorge

To ignore files, you can use the .projectile file at the project root.

I'll look into a more complete solution, but there's no ETA.

xiongtx avatar Feb 03 '17 01:02 xiongtx

What indexing method do you use? I think that I saw this bug go away after adding this to my init file:

(setq projectile-indexing-method 'git)

Though this could be a red herring... it's still unclear to me.

Cbeck527 avatar Feb 04 '17 16:02 Cbeck527

I want helm-projectile-ag to search in .gitignored directories. How do I do this?

rileyrg avatar Jan 28 '20 06:01 rileyrg