Skip to content

Commit

Permalink
Closes Issue #114: Pasting completed tasks into the task list appends…
Browse files Browse the repository at this point in the history
… creation dates in front of the "x".
  • Loading branch information
mjdescy committed Aug 11, 2016
1 parent cac2322 commit 4298691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions TodoTxtMac/TTMTask.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)]) {
Expand Down
2 changes: 1 addition & 1 deletion TodoTxtMac/TodoTxtMac-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2026</string>
<string>2027</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 4298691

Please sign in to comment.