Merge pull request #1079 from filalex77/helm-tasks
Add helm to project tasks
This commit is contained in:
commit
59b45878e6
2 changed files with 8 additions and 1 deletions
|
@ -706,7 +706,7 @@
|
||||||
:desc "Find other file" "o" #'projectile-find-other-file
|
:desc "Find other file" "o" #'projectile-find-other-file
|
||||||
:desc "Switch project" "p" #'projectile-switch-project
|
:desc "Switch project" "p" #'projectile-switch-project
|
||||||
:desc "Recent project files" "r" #'projectile-recentf
|
:desc "Recent project files" "r" #'projectile-recentf
|
||||||
:desc "List project tasks" "t" #'+ivy/tasks ; TODO: Add +helm/tasks
|
:desc "List project tasks" "t" #'+default/project-tasks
|
||||||
:desc "Invalidate cache" "x" #'projectile-invalidate-cache)
|
:desc "Invalidate cache" "x" #'projectile-invalidate-cache)
|
||||||
|
|
||||||
(:prefix ("q" . "quit/restart")
|
(:prefix ("q" . "quit/restart")
|
||||||
|
|
|
@ -84,3 +84,10 @@ If ARG (universal argument), runs `compile' from the current directory."
|
||||||
(set-window-buffer nil buffer)
|
(set-window-buffer nil buffer)
|
||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
(funcall (default-value 'major-mode))))))
|
(funcall (default-value 'major-mode))))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +default/project-tasks ()
|
||||||
|
"Invokes `+ivy/tasks' or `+helm/tasks', depending on which is available."
|
||||||
|
(interactive)
|
||||||
|
(cond ((featurep! :completion ivy) (+ivy/tasks)
|
||||||
|
(featurep! :completion helm) (+helm/tasks))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue