forked from colonelpanic/dotfiles
Invalidate Cache and Open File helm-projectile action
This commit is contained in:
parent
bab589076e
commit
d7b4d1206a
@ -1802,6 +1802,9 @@ window is active in the perspective."
|
|||||||
(progn
|
(progn
|
||||||
(helm-delete-action-from-source "Search in Project" helm-source-projectile-projects)
|
(helm-delete-action-from-source "Search in Project" helm-source-projectile-projects)
|
||||||
(helm-delete-action-from-source "Open term for project" helm-source-projectile-projects)
|
(helm-delete-action-from-source "Open term for project" helm-source-projectile-projects)
|
||||||
|
(defun imalison:invalidate-cache-and-open-file (dir)
|
||||||
|
(projectile-invalidate-cache nil)
|
||||||
|
(projectile-find-file))
|
||||||
(defun imalison:switch-to-project-and-search (dir)
|
(defun imalison:switch-to-project-and-search (dir)
|
||||||
(let ((default-directory dir)
|
(let ((default-directory dir)
|
||||||
(projectile-require-project-root nil)
|
(projectile-require-project-root nil)
|
||||||
@ -1810,6 +1813,9 @@ window is active in the perspective."
|
|||||||
(helm-add-action-to-source "Search in Project"
|
(helm-add-action-to-source "Search in Project"
|
||||||
'imalison:switch-to-project-and-search
|
'imalison:switch-to-project-and-search
|
||||||
helm-source-projectile-projects)
|
helm-source-projectile-projects)
|
||||||
|
(helm-add-action-to-source "Invalidate Cache and Open File"
|
||||||
|
'imalison:invalidate-cache-and-open-file
|
||||||
|
helm-source-projectile-projects)
|
||||||
(helm-add-action-to-source "Open term for project"
|
(helm-add-action-to-source "Open term for project"
|
||||||
(lambda (dir)
|
(lambda (dir)
|
||||||
(let ((default-directory dir)
|
(let ((default-directory dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user