helper: Added the :day hint

This commit is contained in:
Paul Beckingham 2016-04-08 23:48:55 -04:00
parent 4179dc6f32
commit b0a49480ba
2 changed files with 7 additions and 6 deletions

View file

@ -16,8 +16,8 @@
- Integrated libshared.git.
- Colored tags supported.
- Added Taskwarrior hook script to integrate Timewarrior.
- Added support for the ':debug' hint.
- Added support for the ':quiet' hint.
- Added support for the ':debug' and :quiet hints.
- Added support for the :day, :week, :month, :quarter and :year hints.
Design completed 2016-03-13
Project started 2015-11-29

View file

@ -92,10 +92,11 @@ void expandIntervalHint (
{
static std::map <std::string, std::vector <std::string>> hints
{
{":week", {"socw", "eocw"}},
{":month", {"socw", "eocw"}},
{":quarter", {"socw", "eocw"}},
{":year", {"socw", "eocw"}},
{":day", {"today", "tomorrow"}},
{":week", {"socw", "eocw"}},
{":month", {"socw", "eocw"}},
{":quarter", {"socw", "eocw"}},
{":year", {"socw", "eocw"}},
};
if (hints.find (hint) != hints.end ())