From 828f61e4fc422543cc9ec347e29aa823f75b02d9 Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Tue, 21 May 2019 09:52:47 +0200 Subject: [PATCH] Display priority in task list --- taskwarrior.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/taskwarrior.el b/taskwarrior.el index e3a27de..47a892c 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -287,12 +287,13 @@ the front and focus it. Otherwise, create one and load the data." (dolist (entry entries) (let* ((id (format "%-2d" (alist-get 'id entry))) (urgency (format "(%05.2f)" (alist-get 'urgency entry))) - (tags (format "%s" (taskwarrior--concat-tag-list (alist-get 'tags entry)))) + (priority (format "%s" (or (alist-get 'priority entry) " "))) (project (format "[%s]" (alist-get 'project entry))) + (tags (format "%s" (taskwarrior--concat-tag-list (alist-get 'tags entry)))) ;; (project-max-length (taskwarrior--get-max-length 'project entries)) ;; (project-spacing (- project-max-length (length project))) (description (alist-get 'description entry))) - (insert (concat " " id " " urgency " " project " " tags " " description "\n")))))) + (insert (concat " " id " " urgency " " priority " " project " " tags " " description "\n")))))) (defun taskwarrior--concat-tag-list (tags)