bbatsov / helm-projectile

Helm UI for Projectile
329 stars 71 forks source link

Helm-projectile-ag failed when .gitignore exlude root project and add exceptions #71

Closed prestancedesign closed 7 years ago

prestancedesign commented 7 years ago

Description :octocat:

Hi everybody !

It's not specially a only Spacemacs question but I'm sure someone here can give me a simple answer to my issue. All search with spacemacs/helm-project-smart-do-search doesn't work in root directory for one of my project because the web agency set up .gitignore to ignore everything in root with /* and after add exceptions like !classes/, !config, etc. I know, I can create .projectile file and "unignore" directory like !controllers, etc but for project root !/*, it doesn't work. An idea ? Thx

Reproduction guide :beetle:

System Info :computer:

xiongtx commented 7 years ago

What is the behavior with projectile-ag, i.e. without Helm?

Call (helm-projectile-off) to turn off helm-projectile if necessary.

prestancedesign commented 7 years ago

Hi, I close this issue because it's directly a ag behavior. Whitelist files/paths in .gitignore with ! isn't supported for now like it's mentionned here : https://github.com/ggreer/the_silver_searcher/issues/168.

For now, I use the -U (--skip-vcs-ignores) parameter to search all files in project regardless gitignore.