From 3846954c4288965904f30d473e3ec9de63cbc6b8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 25 Jul 2010 23:14:52 -0400 Subject: [PATCH] Feature #43 - Relative dates: +3d, -2w - Added feature #43, now task supports relative dates like '3wks', '1 month', '4d' for 'due', 'wait' and 'until' dates. Essentially durations are now allowed where dates are expected, and are treated as relative to the current date/time. --- ChangeLog | 4 ++++ NEWS | 5 +++-- doc/man/task.1 | 10 ++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 265d81c55..b9043d6de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ ------ current release --------------------------- 1.9.3 () + + Added feature #43, now task supports relative dates like '3wks', + '1 month', '4d' for 'due', 'wait' and 'until' dates. Essentially + durations are now allowed where dates are expected, and are treated + as relative to the current date/time. + Added feature #189, that records the start and stop times as an annotation for a task. + Added feature #391, now the 'task color legend' command will show diff --git a/NEWS b/NEWS index 6b21fb258..8fba22104 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,9 @@ New Features in task 1.9.3 - Start and stop times for a task can now be recorded as annotations. - Special tags 'nocolor', 'nocal' and 'nonag'. + - Now supports durations in dates, such as: + $ task ... due:4d + $ task ... due:3wks Please refer to the ChangeLog file for full details. There are too many to list here. @@ -11,12 +14,10 @@ New commands in task 1.9.3 - New 'task color legend' command will show samples of all the defined colors and color rules from your .taskrc and theme. - - New configuration options in task 1.9.3 - journal.time, journal.time.start.annotation, journal.time.stop.annotation - - Newly deprecated features in task 1.9.3 diff --git a/doc/man/task.1 b/doc/man/task.1 index 9ab2ee985..3900fe882 100644 --- a/doc/man/task.1 +++ b/doc/man/task.1 @@ -335,7 +335,7 @@ Attribute modifiers improve filters. Supported modifiers are: .br .B isnt (synonym not) .br -.B has (synonym contain) +.B has (synonym contains) .br .B hasnt .br @@ -374,11 +374,17 @@ task ... due:today .br task ... due:yesterday .br -task ... due:tomorrow +task ... due:tomorrow .TP Day number with ordinal task ... due:23rd +.br +task ... due:3wks +.br +task ... due:1day +.br +task ... due:9hrs .TP End of week (Friday), month and year