mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
+ivy/tasks: emit better error if project has no tasks
This commit is contained in:
@ -147,8 +147,10 @@ search current file. See `+ivy-task-tags' to customize what this searches for."
|
|||||||
(if arg
|
(if arg
|
||||||
(concat "in: " (file-relative-name buffer-file-name))
|
(concat "in: " (file-relative-name buffer-file-name))
|
||||||
"project"))
|
"project"))
|
||||||
(+ivy--tasks-candidates
|
(let ((tasks (+ivy--tasks (if arg buffer-file-name (doom-project-root)))))
|
||||||
(+ivy--tasks (if arg buffer-file-name (doom-project-root))))
|
(unless tasks
|
||||||
|
(user-error "No tasks in your project! Good job!"))
|
||||||
|
(+ivy--tasks-candidates tasks))
|
||||||
:action #'+ivy--tasks-open-action
|
:action #'+ivy--tasks-open-action
|
||||||
:caller '+ivy/tasks))
|
:caller '+ivy/tasks))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user