Complex query parsed incorrectly
I am trying to use the following query:
(overdue, 7 days, no due date) & !@personal
It does not work as expected - it shows a today's task tagged as 'personal'.
After some experiments, it looks like if there are two date specifiers, the query works fine. For example, the following queries work fine:
(7 days, no due date) & !@personal
(overdue, 7 days) & !@personal
but adding a third date specifier stops query from working.
Another interesting observation: the query (overdue, today, no due date) works, but when I change the order - (overdue, no due date, today) - the query throws a SyntaxError: unmatched ) in regular expression.
Asked by rublinetsky on Aug 14, 2013 - 11:58
It's not advised to use comma separation as "OR" instead of | especially in queries with more than two variables.
In case of the query you want to perform, please try this:
(overdue | 7 days | no date) & !@personal
or a more advanced version:
(overdue & !@personal) | (7 days & !@personal) | (no date & !@personal)