Skip to content

Commit

Permalink
Use project ignored files for helm-projectile-ack
Browse files Browse the repository at this point in the history
So far only the globally ignored files/directories have been used
while the grep command uses also the ignored files/directories
defined in `.projectile`
  • Loading branch information
kain88-de committed Jun 7, 2015
1 parent f019cdd commit 1750295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-projectile.el
Expand Up @@ -718,10 +718,10 @@ If it is nil, or ack/ack-grep not found then use default grep command."
'identity
(-union (-map (lambda (path)
(concat "--ignore-dir=" (file-name-nondirectory (directory-file-name path))))
projectile-globally-ignored-directories)
projectile-ignored-directories)

This comment has been minimized.

Copy link
@DamienCassou

DamienCassou Jun 16, 2015

Contributor

shouldn't that be a function call instead of a variable access? Because projectile-ignored-directories does not exist as a variable on my installation.

This comment has been minimized.

Copy link
@kain88-de

kain88-de Jun 16, 2015

Author Contributor

see #774

(-map (lambda (path)
(concat "--ignore-file=match:" (shell-quote-argument path)))
projectile-globally-ignored-files)) " "))
projectile-ignored-files)) " "))
(helm-ack-grep-executable (cond
((executable-find "ack") "ack")
((executable-find "ack-grep") "ack-grep")
Expand Down

0 comments on commit 1750295

Please sign in to comment.