From d413061ee21f7c750cecc3455bd2faed12d50f9d Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Tue, 5 Nov 2019 20:16:06 +0100 Subject: [PATCH] Captialize prefix name in taskwarrior--change-attribute --- taskwarrior.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/taskwarrior.el b/taskwarrior.el index 79632d8..273bef1 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -290,13 +290,13 @@ (defun taskwarrior--change-attribute (attribute) "Change an ATTRIBUTE of a task." - (let* ((prefix (concat attribute ":")) + (let* ((prefix (format "%s: " (capitalize attribute))) (id (taskwarrior-id-at-point)) - (task (taskwarrior-export-task id)) - (old-value (cdr (assoc-string attribute task))) - (new-value (read-from-minibuffer (concat prefix " ") old-value)) - (quoted-value (concat "\"" new-value "\""))) - (taskwarrior--mutable-shell-command "modify" id (concat prefix quoted-value)))) + (task (taskwarrior-export-task id)) + (old (cdr (assoc-string attribute task))) + (new (read-from-minibuffer prefix old)) + (escaped (format "%s:\"%s\"" attribute new))) + (taskwarrior--mutable-shell-command "modify" id escaped))) (defun taskwarrior-edit-tags () "Edit tags on task."