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,6 +97,7 @@ bool expandIntervalHint (
|
||||||
{
|
{
|
||||||
static std::map <std::string, std::vector <std::string>> hints
|
static std::map <std::string, std::vector <std::string>> hints
|
||||||
{
|
{
|
||||||
|
{":yesterday", {"yesterday", "today"}},
|
||||||
{":day", {"today", "tomorrow"}},
|
{":day", {"today", "tomorrow"}},
|
||||||
{":week", {"socw", "eocw"}},
|
{":week", {"socw", "eocw"}},
|
||||||
{":month", {"socw", "eocw"}},
|
{":month", {"socw", "eocw"}},
|
||||||
|
|
|
@ -82,6 +82,7 @@ void initializeEntities (CLI& cli)
|
||||||
// Hint entities.
|
// Hint entities.
|
||||||
cli.entity ("hint", ":debug");
|
cli.entity ("hint", ":debug");
|
||||||
cli.entity ("hint", ":quiet");
|
cli.entity ("hint", ":quiet");
|
||||||
|
cli.entity ("hint", ":yesterday");
|
||||||
cli.entity ("hint", ":day");
|
cli.entity ("hint", ":day");
|
||||||
cli.entity ("hint", ":week");
|
cli.entity ("hint", ":week");
|
||||||
cli.entity ("hint", ":month");
|
cli.entity ("hint", ":month");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue