diff --git a/ChangeLog b/ChangeLog index f586a5363..e77250b29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -201,6 +201,9 @@ - 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 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 --------------------------- diff --git a/NEWS b/NEWS index a47dd41a5..82d189e08 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,9 @@ New Features in taskwarrior 2.4.0 the urgency values of the dependency chain. - Listing breaks now supported. See 'man taskrc'. - 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. New commands in taskwarrior 2.4.0 diff --git a/src/Parser.cpp b/src/Parser.cpp index 48077bc39..ef1bd829c 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -978,15 +978,11 @@ void Parser::findAttribute () Tree* branch = (*i)->addBranch (new Tree ("argAtt")); branch->attribute ("raw", canonical); + // The 'name:value' maps to 'name = value', the partial match + // operator. branch = (*i)->addBranch (new Tree ("argAtt")); branch->tag ("OP"); - - // All 'project' attributes are partial matches. - if (canonical == "project" || - canonical == "uuid") - branch->attribute ("raw", "="); - else - branch->attribute ("raw", "=="); + branch->attribute ("raw", "="); branch = (*i)->addBranch (new Tree ("argAtt")); branch->attribute ("raw", value);