Merge pull request #1079 from filalex77/helm-tasks

Add helm to project tasks
This commit is contained in:
Henrik Lissner 2018-12-31 15:28:51 -05:00 committed by GitHub
commit 59b45878e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -706,7 +706,7 @@
:desc "Find other file" "o" #'projectile-find-other-file
:desc "Switch project" "p" #'projectile-switch-project
: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)
(:prefix ("q" . "quit/restart")

View file

@ -84,3 +84,10 @@ If ARG (universal argument), runs `compile' from the current directory."
(set-window-buffer nil buffer)
(with-current-buffer buffer
(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))))