From b0a49480ba151bc65c3babec608ea1a244e3d34f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 8 Apr 2016 23:48:55 -0400 Subject: [PATCH] helper: Added the :day hint --- ChangeLog | 4 ++-- src/helper.cpp | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a92d1c04..cd07735e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/helper.cpp b/src/helper.cpp index b311fef7..111afd54 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -92,10 +92,11 @@ void expandIntervalHint ( { static std::map > 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 ())