Skip to content

Commit

Permalink
use helm-projectile-ag instead of helm-do-ag in projects
Browse files Browse the repository at this point in the history
helm-projectile-ag respects an ignore list from .projectile file
 (e.g. -/build, -/tmp).
  • Loading branch information
dvzubarev committed Feb 28, 2016
1 parent f5924d1 commit 392ba01
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions layers/+completion/spacemacs-helm/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -696,35 +696,22 @@ Search for a search tool in the order provided by `dotspacemacs-search-tools'."
(defun spacemacs/helm-project-do-ag ()
"Search in current project with `ag'."
(interactive)
(let ((dir (projectile-project-root)))
(if dir
(helm-do-ag dir)
(message "error: Not in a project."))))
(helm-projectile-ag))

(defun spacemacs/helm-project-do-ag-region-or-symbol ()
"Search in current project with `ag' using a default input."
(interactive)
(let ((dir (projectile-project-root)))
(if dir
(spacemacs//helm-do-ag-region-or-symbol 'helm-do-ag dir)
(message "error: Not in a project."))))
(spacemacs//helm-do-ag-region-or-symbol 'helm-projectile-ag))

(defun spacemacs/helm-project-do-ack ()
"Search in current project with `ack'."
(interactive)
(let ((dir (projectile-project-root)))
(if dir
(spacemacs/helm-files-do-ack dir)
(message "error: Not in a project."))))
(helm-projectile-ack))

(defun spacemacs/helm-project-do-ack-region-or-symbol ()
"Search in current project with `ack' using a default input."
(interactive)
(let ((dir (projectile-project-root)))
(if dir
(spacemacs//helm-do-ag-region-or-symbol
'spacemacs/helm-files-do-ack dir)
(message "error: Not in a project."))))
(spacemacs//helm-do-ag-region-or-symbol 'helm-projectile-ack))

(defun spacemacs/helm-project-do-pt ()
"Search in current project with `pt'."
Expand Down

0 comments on commit 392ba01

Please sign in to comment.