Add ":today" hint

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2023-10-06 08:30:05 +02:00 committed by Thomas Lauf
parent b6f6457b6c
commit 0b641da598
4 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,6 @@
------ current release ---------------------------
- Add ':today' hint
------ current release ---------------------------
1.6.0 (2023-09-18) - cd1aa610ed50558bb2cf141022fa7b41523091ac3ae5fbb9c2d459cfe1afc782

View file

@ -36,7 +36,7 @@ Range hints provide convenient shortcuts to date ranges:
:all All tracked time
:yesterday The 24 hours of the previous day
:day The 24 hours of the current day
:day / :today The 24 hours of the current day
:week This week
:fortnight This week and the one before
:month This month

View file

@ -147,6 +147,7 @@ bool expandIntervalHint (
{
{":yesterday", {"sopd", "sod" }},
{":day", {"sod", "sond"}},
{":today", {"sod", "sond"}},
{":week", {"sow", "sonw"}},
{":fortnight", {"sopw", "sonw"}},
{":month", {"som", "sonm"}},

View file

@ -112,6 +112,7 @@ void initializeEntities (CLI& cli)
cli.entity ("hint", ":quiet");
cli.entity ("hint", ":tags");
cli.entity ("hint", ":no-tags");
cli.entity ("hint", ":today");
cli.entity ("hint", ":week");
cli.entity ("hint", ":year");
cli.entity ("hint", ":yes");