-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
Grep searches ignored directories on OS X #47
Comments
I can confirm this on Arch Linux as well. The problem is because
Therefore when setting up grep-find-ignored-directories, |
Here is a quick and dirty fix that works for me
|
Here's a way to fix it without changing projectile. This still needs to be fixed - but untill it is, it's easier (for me) to just add files/directories to global grep ignored list, like that: (eval-after-load "grep"
'(progn
(add-to-list 'grep-find-ignored-directories ".bundle")
(add-to-list 'grep-find-ignored-directories "log"))) |
I've recently done some changes that should have taken care of that particular problem. Is it still present? |
I'm using 0.8 and it has indeed been fixed on Linux. |
And I'm using OSX and I know it's fixed there. :-) |
Strange. I'm using OSX and directories listed in .projectile file are still not ignored by grep. I just upgraded package thorough package manager to the version 20130129.2335. Is this version the one that has this fix? |
It worked for me when I added leading forward slash ( I haven't tried relative pathnames, though. |
I knew I made an error :) It is working with leading slash. I tried with ending slash which I thought will notify projectile that it is directory that's why it didn't work. However I think using forward slashes (without relative paths) results in a little bit strange syntax since /log associates to top level file system directory rather than subdirectory of current project. Nevertheless it is working now. Excellent! |
It's a work in progress. Luckily we're making progress (albeit slowly). :-) |
Excellent work I must say. Just keep going. It would be good if it can accept relative paths because current ignore list looks quite strange if there are hidden directories. For example ./bundle directory in ignore list must be written as /.bundle. Thanks again for this fix ;-) |
Directories listed in the .projectile file are searched when "Find in project" command is executed and they should be ignored.
The text was updated successfully, but these errors were encountered: