Add configurable default range for reports

Query rule 'reports.<name>.range' for the specific default range of the report.
Use rule 'reports.range' to configure an overall default range for all reports.
Make internal reports 'summary', 'month', 'week', 'day', and 'gaps' use this feature.

Closes #477

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2022-09-23 14:04:01 +02:00
parent d056719a36
commit 5265b26e86
8 changed files with 84 additions and 11 deletions

View file

@ -14,6 +14,7 @@ A chart summarizes the tracked and untracked time with colored blocks drawn on a
It accepts date ranges and tags for filtering.
There are three types: *day*, *week*, and *month* with their respective commands.
The **reports.**__<type>__**.range** configuration setting overrides the default date range.
One can override the global default date range with the **reports.range** configuration.
For more details, and precise times, use the 'summary' report.
*month*::