mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
helper: Added :yesterday hint
This commit is contained in:
parent
e7dd8edf26
commit
7f9f29ee86
2 changed files with 7 additions and 5 deletions
|
@ -97,11 +97,12 @@ bool expandIntervalHint (
|
|||
{
|
||||
static std::map <std::string, std::vector <std::string>> hints
|
||||
{
|
||||
{":day", {"today", "tomorrow"}},
|
||||
{":week", {"socw", "eocw"}},
|
||||
{":month", {"socw", "eocw"}},
|
||||
{":quarter", {"socw", "eocw"}},
|
||||
{":year", {"socw", "eocw"}},
|
||||
{":yesterday", {"yesterday", "today"}},
|
||||
{":day", {"today", "tomorrow"}},
|
||||
{":week", {"socw", "eocw"}},
|
||||
{":month", {"socw", "eocw"}},
|
||||
{":quarter", {"socw", "eocw"}},
|
||||
{":year", {"socw", "eocw"}},
|
||||
};
|
||||
|
||||
if (hints.find (hint) != hints.end ())
|
||||
|
|
|
@ -82,6 +82,7 @@ void initializeEntities (CLI& cli)
|
|||
// Hint entities.
|
||||
cli.entity ("hint", ":debug");
|
||||
cli.entity ("hint", ":quiet");
|
||||
cli.entity ("hint", ":yesterday");
|
||||
cli.entity ("hint", ":day");
|
||||
cli.entity ("hint", ":week");
|
||||
cli.entity ("hint", ":month");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue