+ivy/tasks: emit better error if project has no tasks
This commit is contained in:
parent
35e5a47e9f
commit
2f7f8f0868
1 changed files with 4 additions and 2 deletions
|
@ -147,8 +147,10 @@ search current file. See `+ivy-task-tags' to customize what this searches for."
|
|||
(if arg
|
||||
(concat "in: " (file-relative-name buffer-file-name))
|
||||
"project"))
|
||||
(+ivy--tasks-candidates
|
||||
(+ivy--tasks (if arg buffer-file-name (doom-project-root))))
|
||||
(let ((tasks (+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
|
||||
:caller '+ivy/tasks))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue