From 7aea4db13dfff904318449718ae0959e5c1eb22c Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Tue, 21 May 2019 12:13:29 +0200 Subject: [PATCH] Display annotation count in minibuffer --- taskwarrior.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/taskwarrior.el b/taskwarrior.el index b9b54c7..8916485 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -97,9 +97,10 @@ (defun taskwarrior--display-task-details-in-echo-area () (let* ((id (taskwarrior-id-at-point)) (task (taskwarrior-export-task id)) + (annotation-count (length (alist-get 'annotations task))) (due (taskwarrior--parse-timestamp (alist-get 'due task)))) (when due - (message "Due: %s" due)))) + (message "Due: %s | %i Annotations" due annotation-count)))) (defun taskwarrior-previous-task () (interactive)