mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
DOM: New reference tw.version.
This commit is contained in:
parent
7e4dd24d86
commit
f7ab2c4b2d
5 changed files with 12 additions and 2 deletions
|
@ -90,7 +90,8 @@
|
||||||
- Added 'history.weekly', 'history.daily', 'ghistory.weekly', 'ghistory.daily'
|
- Added 'history.weekly', 'history.daily', 'ghistory.weekly', 'ghistory.daily'
|
||||||
report variations, with code refactoring.
|
report variations, with code refactoring.
|
||||||
(thanks to Lukas Barth).
|
(thanks to Lukas Barth).
|
||||||
- New DOM references: annotations.count, tw.syncneeded.
|
- New DOM references: annotations.count, tw.syncneeded, tw.program, tw.args,
|
||||||
|
tw.width, tw.height, tw.version.
|
||||||
- The message telling you to sync now indicates how many local changes will be
|
- The message telling you to sync now indicates how many local changes will be
|
||||||
synced.
|
synced.
|
||||||
|
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -4,7 +4,7 @@ New Features in Taskwarrior 2.6.0
|
||||||
- The 'QUARTER' virtual tag was added.
|
- The 'QUARTER' virtual tag was added.
|
||||||
- Improved compatibility with SmartOS, OmniOS and OpenIndiana.
|
- Improved compatibility with SmartOS, OmniOS and OpenIndiana.
|
||||||
- New DOM references: annotations.count, tw.syncneeded, tw.program, tw.args,
|
- New DOM references: annotations.count, tw.syncneeded, tw.program, tw.args,
|
||||||
tw.width, tw.height.
|
tw.width, tw.height, tw.version.
|
||||||
- Renovated 'timesheet' command with a more compact report that accepts a
|
- Renovated 'timesheet' command with a more compact report that accepts a
|
||||||
filter, and has a default filter showing the last four weeks of completed
|
filter, and has a default filter showing the last four weeks of completed
|
||||||
and started tasks.
|
and started tasks.
|
||||||
|
|
|
@ -638,6 +638,7 @@ from tasks, or the system. Supported DOM references are:
|
||||||
tw.args
|
tw.args
|
||||||
tw.width
|
tw.width
|
||||||
tw.height
|
tw.height
|
||||||
|
tw.version
|
||||||
context.program (Deprecated in 2.6.0)
|
context.program (Deprecated in 2.6.0)
|
||||||
context.args (Deprecated in 2.6.0)
|
context.args (Deprecated in 2.6.0)
|
||||||
context.width (Deprecated in 2.6.0)
|
context.width (Deprecated in 2.6.0)
|
||||||
|
|
|
@ -53,6 +53,7 @@ extern Context context;
|
||||||
// tw.args
|
// tw.args
|
||||||
// tw.width
|
// tw.width
|
||||||
// tw.height
|
// tw.height
|
||||||
|
// tw.version
|
||||||
//
|
//
|
||||||
// System:
|
// System:
|
||||||
// context.program // 2017-02-25 Deprecated in 2.6.0
|
// context.program // 2017-02-25 Deprecated in 2.6.0
|
||||||
|
@ -137,6 +138,12 @@ bool getDOM (const std::string& name, Variant& value)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (name == "tw.version")
|
||||||
|
{
|
||||||
|
value = Variant (VERSION);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1190,6 +1190,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
|
||||||
"tw.args",
|
"tw.args",
|
||||||
"tw.width",
|
"tw.width",
|
||||||
"tw.height",
|
"tw.height",
|
||||||
|
"tw.version",
|
||||||
"context.program",
|
"context.program",
|
||||||
"context.args",
|
"context.args",
|
||||||
"context.width",
|
"context.width",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue