From 8b133b3bc3053f3ccf59f6090bbceaa307ae7c7e Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Sun, 14 Apr 2019 21:38:40 +0200 Subject: [PATCH] Add function and binding to change priority of task --- taskwarrior.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/taskwarrior.el b/taskwarrior.el index f58d554..a05922c 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -33,6 +33,7 @@ (define-key taskwarrior-mode-map (kbd "j") 'taskwarrior-next-task) (define-key taskwarrior-mode-map (kbd "q") 'quit-window) (define-key taskwarrior-mode-map (kbd "e") 'taskwarrior-change-description) + (define-key taskwarrior-mode-map (kbd "U") 'taskwarrior-change-priority) (define-key taskwarrior-mode-map (kbd "g") 'taskwarrior-update-buffer) (define-key taskwarrior-mode-map (kbd "a") 'taskwarrior-add) (define-key taskwarrior-mode-map (kbd "d") 'taskwarrior-done) @@ -146,6 +147,11 @@ (interactive) (taskwarrior--change-attribute "description")) +(defun taskwarrior-change-priority () + "Change the priority of a task" + (interactive) + (taskwarrior--change-attribute "priority")) + (defun taskwarrior-change-project () "Change the project of a task" (interactive)