mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
Feature #638
- added worded dates "later" and "someday" to enable the hiding of a task until doomsday.
This commit is contained in:
parent
be0357da4a
commit
0cac03ad4a
5 changed files with 27 additions and 2 deletions
|
@ -985,6 +985,8 @@ bool Date::isRelativeDate (const std::string& input)
|
|||
supported.push_back ("midsommar");
|
||||
supported.push_back ("midsommarafton");
|
||||
supported.push_back ("now");
|
||||
supported.push_back ("later");
|
||||
supported.push_back ("someday");
|
||||
|
||||
std::vector <std::string> matches;
|
||||
if (autoComplete (in, supported, matches) == 1)
|
||||
|
@ -1141,6 +1143,12 @@ bool Date::isRelativeDate (const std::string& input)
|
|||
mT = time (NULL);
|
||||
return true;
|
||||
}
|
||||
else if (found == "later" || found == "someday")
|
||||
{
|
||||
Date then (1, 18, 2038);
|
||||
mT = then.mT;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Support "21st" to indicate the next date that is the 21st day.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue