new counsel-projectile function

It is more like helm-projectile
This commit is contained in:
Eric Danan 2016-09-13 22:55:12 +02:00
parent ba4a2f9619
commit f6086a7e8a

View file

@ -165,6 +165,18 @@ With a prefix ARG invokes `projectile-commander' instead of `projectile-switch-p
(projectile-switch-project-by-name dir arg))) (projectile-switch-project-by-name dir arg)))
"start eshell"))) "start eshell")))
;;; counsel-projectile
;;;###autoload
(defun counsel-projectile (&optional arg)
"Use projectile with Ivy instead of ido.
With a prefix ARG invalidates the cache first."
(interactive "P")
(if (projectile-project-p)
(counsel-projectile-find-file)
(counsel-projectile-switch-project arg)))
(provide 'counsel-projectile) (provide 'counsel-projectile)