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)