From 4298691dd8a2f30b2b660368e7ca576704f97ca3 Mon Sep 17 00:00:00 2001 From: Michael Descy Date: Thu, 11 Aug 2016 10:56:38 -0400 Subject: [PATCH] Closes Issue #114: Pasting completed tasks into the task list appends creation dates in front of the "x". --- TodoTxtMac/TTMTask.m | 5 +++-- TodoTxtMac/TodoTxtMac-Info.plist | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TodoTxtMac/TTMTask.m b/TodoTxtMac/TTMTask.m index 1b915f9..eff9168 100644 --- a/TodoTxtMac/TTMTask.m +++ b/TodoTxtMac/TTMTask.m @@ -102,10 +102,11 @@ - (void)setRawText:(NSString*)rawText withPrependedDate:(NSDate*)prependedDate { if (!prependedDate || [rawText isMatch:RX(CreationDatePatternIncomplete)] || - [rawText isMatch:RX(CreationDatePatternCompleted)] + [rawText isMatch:RX(CreationDatePatternCompleted)] || + [rawText isMatch:RX(CompletedPattern)] ) { - // if no prepended date is passed, or if there is already a creation date, prepend nothing + // if no prepended date is passed, or if there is already a creation date, or the task is already completed, prepend nothing newRawText = rawText; } else if ([rawText isMatch:RX(PriorityTextPattern)]) { diff --git a/TodoTxtMac/TodoTxtMac-Info.plist b/TodoTxtMac/TodoTxtMac-Info.plist index d202449..4fef59c 100644 --- a/TodoTxtMac/TodoTxtMac-Info.plist +++ b/TodoTxtMac/TodoTxtMac-Info.plist @@ -42,7 +42,7 @@ CFBundleSignature ???? CFBundleVersion - 2026 + 2027 LSApplicationCategoryType public.app-category.productivity LSMinimumSystemVersion