From ba4a2f96196858ca63e868cbcda946c6567661f0 Mon Sep 17 00:00:00 2001 From: Eric Danan Date: Tue, 13 Sep 2016 22:48:48 +0200 Subject: [PATCH] rename counsel-projectile New name is counsel-projectile-switch-project --- counsel-projectile.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 6f93673..b8400e8 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -108,13 +108,13 @@ With a prefix ARG invalidates the cache first." (switch-to-buffer-other-window x)) "other window"))) -;;; counsel-projectile +;;; counsel-projectile-switch-project ;;;###autoload -(defun counsel-projectile (&optional arg) - "Use projectile with Ivy instead of ido. - -With a prefix ARG invalidates the cache first." +(defun counsel-projectile-switch-project (&optional arg) + "Switch to a project we have visited before. +Invokes the command referenced by `projectile-switch-project-action' on switch. +With a prefix ARG invokes `projectile-commander' instead of `projectile-switch-project-action.'" (interactive "P") (ivy-read (projectile-prepend-project-name "Switch to project: ") projectile-known-projects @@ -123,10 +123,10 @@ With a prefix ARG invalidates the cache first." :action (lambda (dir) (projectile-switch-project-by-name dir arg)) :require-match t - :caller 'counsel-projectile)) + :caller 'counsel-projectile-switch-project)) (ivy-set-actions - 'counsel-projectile + 'counsel-projectile-switch-project '(("f" (lambda (dir) (let ((projectile-switch-project-action 'counsel-projectile-find-file)) (projectile-switch-project-by-name dir arg)))