mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdGaps: Supports :blank
This commit is contained in:
parent
dc4412302e
commit
843d490787
1 changed files with 12 additions and 1 deletions
|
@ -48,7 +48,18 @@ int CmdGaps (
|
|||
filter.range = Range (Datetime ("today"), Datetime ("tomorrow"));
|
||||
}
|
||||
|
||||
auto untracked = getUntracked (database, rules, filter);
|
||||
// Is the :blank hint being used?
|
||||
bool blank = false;
|
||||
for (auto& arg : cli._args)
|
||||
if (arg.hasTag ("HINT") &&
|
||||
arg.getToken () == ":blank")
|
||||
blank = true;
|
||||
|
||||
std::vector <Range> untracked;
|
||||
if (blank)
|
||||
untracked = subtractRanges ({filter.range}, getAllExclusions (rules, filter.range));
|
||||
else
|
||||
untracked = getUntracked (database, rules, filter);
|
||||
|
||||
Table table;
|
||||
table.width (1024);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue