mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
ENH: Add new interval hint :fortnight (sopw - eow).
This commit is contained in:
parent
41c50e009c
commit
13fb0ad8e3
3 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,7 @@ Range hints provide convenient shortcuts to date ranges:
|
|||
:yesterday The 24 hours of the previous day
|
||||
:day The 24 hours of the current day
|
||||
:week This week
|
||||
:fortnight This week and the one before
|
||||
:month This month
|
||||
:quarter This quarter
|
||||
:year This year
|
||||
|
|
|
@ -147,6 +147,7 @@ bool expandIntervalHint (
|
|||
{":yesterday", {"yesterday", "today"}},
|
||||
{":day", {"today", "eod"}},
|
||||
{":week", {"sow", "eow"}},
|
||||
{":fortnight", {"sopw", "eow"}},
|
||||
{":month", {"som", "eom"}},
|
||||
{":quarter", {"soq", "eoq"}},
|
||||
{":year", {"soy", "eoy"}},
|
||||
|
|
|
@ -105,6 +105,7 @@ void initializeEntities (CLI& cli)
|
|||
cli.entity ("hint", ":quarter");
|
||||
cli.entity ("hint", ":quiet");
|
||||
cli.entity ("hint", ":week");
|
||||
cli.entity ("hint", ":fortnight");
|
||||
cli.entity ("hint", ":year");
|
||||
cli.entity ("hint", ":yes");
|
||||
cli.entity ("hint", ":yesterday");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue