mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- Modified ':' to perform partial matches, which means dates now match on same day.
This commit is contained in:
parent
47cfe515e6
commit
5c485f6c53
3 changed files with 9 additions and 7 deletions
|
@ -201,6 +201,9 @@
|
||||||
- File format 3 (used in version 1.6.0 - 1.7.1) is no longer supported.
|
- File format 3 (used in version 1.6.0 - 1.7.1) is no longer supported.
|
||||||
- If the 'taskd.trust' setting contains a bad value, the 'diag' command will
|
- If the 'taskd.trust' setting contains a bad value, the 'diag' command will
|
||||||
indicate this, and the 'sync' command will error out.
|
indicate this, and the 'sync' command will error out.
|
||||||
|
- The filter form 'name:value' now maps to the partial match operator '=',
|
||||||
|
rather than the exact match operator, '=='. This means that dates now
|
||||||
|
match on the day by default, not the time also.
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|
3
NEWS
3
NEWS
|
@ -19,6 +19,9 @@ New Features in taskwarrior 2.4.0
|
||||||
the urgency values of the dependency chain.
|
the urgency values of the dependency chain.
|
||||||
- Listing breaks now supported. See 'man taskrc'.
|
- Listing breaks now supported. See 'man taskrc'.
|
||||||
- New fish shell completion script.
|
- New fish shell completion script.
|
||||||
|
- The filter form 'name:value' now maps to the partial match operator '=',
|
||||||
|
rather than the exact match operator, '=='. This means that dates now
|
||||||
|
match on the day by default, not the time also.
|
||||||
- Hooks.
|
- Hooks.
|
||||||
|
|
||||||
New commands in taskwarrior 2.4.0
|
New commands in taskwarrior 2.4.0
|
||||||
|
|
|
@ -978,15 +978,11 @@ void Parser::findAttribute ()
|
||||||
Tree* branch = (*i)->addBranch (new Tree ("argAtt"));
|
Tree* branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||||
branch->attribute ("raw", canonical);
|
branch->attribute ("raw", canonical);
|
||||||
|
|
||||||
|
// The 'name:value' maps to 'name = value', the partial match
|
||||||
|
// operator.
|
||||||
branch = (*i)->addBranch (new Tree ("argAtt"));
|
branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||||
branch->tag ("OP");
|
branch->tag ("OP");
|
||||||
|
|
||||||
// All 'project' attributes are partial matches.
|
|
||||||
if (canonical == "project" ||
|
|
||||||
canonical == "uuid")
|
|
||||||
branch->attribute ("raw", "=");
|
branch->attribute ("raw", "=");
|
||||||
else
|
|
||||||
branch->attribute ("raw", "==");
|
|
||||||
|
|
||||||
branch = (*i)->addBranch (new Tree ("argAtt"));
|
branch = (*i)->addBranch (new Tree ("argAtt"));
|
||||||
branch->attribute ("raw", value);
|
branch->attribute ("raw", value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue