Display annotation count in minibuffer

This commit is contained in:
Patrick Winter 2019-05-21 12:13:29 +02:00
parent 1f6ad040a5
commit 7aea4db13d

View file

@ -97,9 +97,10 @@
(defun taskwarrior--display-task-details-in-echo-area () (defun taskwarrior--display-task-details-in-echo-area ()
(let* ((id (taskwarrior-id-at-point)) (let* ((id (taskwarrior-id-at-point))
(task (taskwarrior-export-task id)) (task (taskwarrior-export-task id))
(annotation-count (length (alist-get 'annotations task)))
(due (taskwarrior--parse-timestamp (alist-get 'due task)))) (due (taskwarrior--parse-timestamp (alist-get 'due task))))
(when due (when due
(message "Due: %s" due)))) (message "Due: %s | %i Annotations" due annotation-count))))
(defun taskwarrior-previous-task () (defun taskwarrior-previous-task ()
(interactive) (interactive)