prepend project name
This commit is contained in:
parent
e17c084563
commit
351ce9ec61
1 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ Replacement for `projectile-find-file'.
|
||||||
With a prefix ARG invalidates the cache first."
|
With a prefix ARG invalidates the cache first."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(projectile-maybe-invalidate-cache arg)
|
(projectile-maybe-invalidate-cache arg)
|
||||||
(ivy-read "Find file: "
|
(ivy-read (projectile-prepend-project-name "Find file: ")
|
||||||
(projectile-current-project-files)
|
(projectile-current-project-files)
|
||||||
:action
|
:action
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
|
|
@ -77,7 +77,7 @@ With a prefix ARG invalidates the cache first."
|
||||||
With a prefix ARG invalidates the cache first."
|
With a prefix ARG invalidates the cache first."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(projectile-maybe-invalidate-cache arg)
|
(projectile-maybe-invalidate-cache arg)
|
||||||
(ivy-read "Find dir: "
|
(ivy-read (projectile-prepend-project-name "Find dir: ")
|
||||||
(if projectile-find-dir-includes-top-level
|
(if projectile-find-dir-includes-top-level
|
||||||
(append '("./") (projectile-current-project-dirs))
|
(append '("./") (projectile-current-project-dirs))
|
||||||
(projectile-current-project-dirs))
|
(projectile-current-project-dirs))
|
||||||
|
|
@ -104,7 +104,7 @@ With a prefix ARG invalidates the cache first."
|
||||||
(defun counsel-projectile-switch-to-buffer ()
|
(defun counsel-projectile-switch-to-buffer ()
|
||||||
"Switch to a project buffer."
|
"Switch to a project buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(ivy-read "Switch-to-buffer: "
|
(ivy-read (projectile-prepend-project-name "Switch-to-buffer: ")
|
||||||
(-remove-item (buffer-name (current-buffer))
|
(-remove-item (buffer-name (current-buffer))
|
||||||
(projectile-project-buffer-names))
|
(projectile-project-buffer-names))
|
||||||
:action
|
:action
|
||||||
|
|
@ -129,7 +129,7 @@ With a prefix ARG invalidates the cache first."
|
||||||
|
|
||||||
With a prefix ARG invalidates the cache first."
|
With a prefix ARG invalidates the cache first."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(ivy-read "Switch to project: "
|
(ivy-read (projectile-prepend-project-name "Switch to project: ")
|
||||||
(if (projectile-project-p)
|
(if (projectile-project-p)
|
||||||
(cons (abbreviate-file-name (projectile-project-root))
|
(cons (abbreviate-file-name (projectile-project-root))
|
||||||
(projectile-relevant-known-projects))
|
(projectile-relevant-known-projects))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue