mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
dom: Added 'dom.active.start' support
This commit is contained in:
parent
e3f03c7524
commit
97e8d6d558
1 changed files with 10 additions and 0 deletions
10
src/dom.cpp
10
src/dom.cpp
|
@ -51,12 +51,22 @@ bool domGet (
|
|||
return true;
|
||||
}
|
||||
|
||||
// dom.active.start
|
||||
if (pig.skipLiteral (".start") &&
|
||||
latest.range.is_open ())
|
||||
{
|
||||
value = latest.range.start.toISOLocalExtended ();
|
||||
return true;
|
||||
}
|
||||
|
||||
// dom.active.tag.count
|
||||
if (pig.skipLiteral (".tag.count"))
|
||||
{
|
||||
value = format ("{1}", latest.tags ().size ());
|
||||
return true;
|
||||
}
|
||||
|
||||
// dom.active.tag.<N>
|
||||
pig.save ();
|
||||
int n;
|
||||
if (pig.skipLiteral (".tag.") &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue