mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Add ":today" hint
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
b6f6457b6c
commit
0b641da598
4 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
|||
------ current release ---------------------------
|
||||
- Add ':today' hint
|
||||
|
||||
------ current release ---------------------------
|
||||
|
||||
1.6.0 (2023-09-18) - cd1aa610ed50558bb2cf141022fa7b41523091ac3ae5fbb9c2d459cfe1afc782
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -147,6 +147,7 @@ bool expandIntervalHint (
|
|||
{
|
||||
{":yesterday", {"sopd", "sod" }},
|
||||
{":day", {"sod", "sond"}},
|
||||
{":today", {"sod", "sond"}},
|
||||
{":week", {"sow", "sonw"}},
|
||||
{":fortnight", {"sopw", "sonw"}},
|
||||
{":month", {"som", "sonm"}},
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue