Add helm to project tasks

This commit is contained in:
Oleksii Filonenko 2018-12-28 03:31:03 +02:00
parent 869758e8f5
commit 9a0da588d9
No known key found for this signature in database
GPG key ID: F3510FE5691629A1
2 changed files with 6 additions and 1 deletions

View file

@ -700,7 +700,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,8 @@ 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 ()
(cond ((featurep! :completion ivy) (+ivy/tasks)
(featurep! :completion helm) (+helm/tasks))))