mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
dom: Added 'dom.tracked.count' support
This commit is contained in:
parent
80b465e0ac
commit
3ace06b75e
1 changed files with 12 additions and 0 deletions
12
src/dom.cpp
12
src/dom.cpp
|
@ -100,6 +100,18 @@ bool domGet (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (pig.skipLiteral ("tracked."))
|
||||||
|
{
|
||||||
|
auto tracked = getAllInclusions (database);
|
||||||
|
|
||||||
|
// dom.tracked.count
|
||||||
|
if (pig.skipLiteral ("count"))
|
||||||
|
{
|
||||||
|
value = format ("{1}", tracked.size ());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (pig.skipLiteral ("tag."))
|
else if (pig.skipLiteral ("tag."))
|
||||||
{
|
{
|
||||||
// Generate a unique, ordered list of tags.
|
// Generate a unique, ordered list of tags.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue