benrhughes/todotxt.net — pull request #74 by arkolbus (2012-05-05 19:48:44+00:00)
Title: Dev

Added support for relative due date:

If relative day is used with 'due:' tag, it will be replaced with
a hard date before processing the task. The task will be saved
with the hard date, not the relative day

Supports english 'today', 'tomorrow', and full day of week ('monday',
'tuesday', etc).

Examples:
Assuming task entered on Saturday, May 5 2012 (2012-05-05):
due:today	->	due:2012-05-05
due:tomorrow	->	due:2012-05-06
due:sunday	->	due:2012-05-06
due:monday	->	due:2012-05-07
due:tuesday	->	due:2012-05-08
due:wednesday	->	due:2012-05-09
due:thursday	->	due:2012-05-10
due:friday	->	due:2012-05-11
due:saturday	->	due:2012-05-12

Notes:
-Supports english only
-Supports 'today', 'tomorrow', and full weekday ('monday', 'tuesday', etc)
-Ignores case ('sunday', 'Sunday', 'SUNDAY', 'SuNDaY' all work)

Limitations (suggested improvements!)
-Does not support other languages
-Does not support short weekday ('mon', 'tue', etc)
-Does not support complex relative days ('in two days', 'next
thursday','last day of month', etc)