Add search in project using ag action to helm-projectile-switch-project.

This commit is contained in:
Ivan Malison 2015-06-28 22:31:41 -07:00
parent e764344eae
commit bb870a9ef6

View File

@ -1391,10 +1391,22 @@ window is active in the perspective."
(progn (progn
(use-package persp-projectile (use-package persp-projectile
:ensure t :ensure t
:commands projectile-persp-switch-project) :commands projectile-persp-switch-project)))
(use-package helm-projectile
(use-package helm-projectile
:ensure t :ensure t
:commands (helm-projectile-on)))) :commands (helm-projectile-on)
:config
(progn
(helm-delete-action-from-source "Search in Project" helm-source-projectile-projects)
(defun imalison:switch-to-project-and-search (dir)
(let ((default-directory dir)
(projectile-require-project-root nil)
(helm-action-buffer "this-buffer-should-not-exist"))
(helm-projectile-ag)))
(helm-add-action-to-source "Search in Project"
'imalison:switch-to-project-and-search
helm-source-projectile-projects)))
(use-package smex (use-package smex
:ensure t :ensure t