new counsel-projectile function
It is more like helm-projectile
This commit is contained in:
parent
ba4a2f9619
commit
f6086a7e8a
1 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue