mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Documentation
- Corrected some example command lines (thanks to Eric Fluger).
This commit is contained in:
parent
9853bfee46
commit
71a15f9d44
1 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@ More filter examples:
|
|||
By default, filter elements are combined with an implicit 'and' operator,
|
||||
but 'or' and 'xor' may also be used, provided parentheses are included:
|
||||
|
||||
task '(/[Cc]at|[Dd]og/ or /[0-9]+/)' <command> <mods>
|
||||
task '( /[Cc]at|[Dd]og/ or /[0-9]+/ )' <command> <mods>
|
||||
|
||||
The parentheses isolate the logical term from any default command filter or
|
||||
implicit report filter.
|
||||
|
@ -671,7 +671,7 @@ You can use the following operators in filter expressions:
|
|||
For example:
|
||||
|
||||
task due.before:eom priority.not:L list
|
||||
task '(due < eom or priority != L)' list
|
||||
task '( due < eom or priority != L )' list
|
||||
|
||||
Note that the parentheses are required when using a logical operator other than
|
||||
the 'and' operator. The reason is that some report contains filters that must
|
||||
|
@ -698,11 +698,11 @@ The implied 'and' operator makes it:
|
|||
This is a precedence error - the 'and' and 'or' need to be grouped using
|
||||
parentheses, like this:
|
||||
|
||||
task status:pending and (project:Home or project:Garden) list
|
||||
task status:pending and ( project:Home or project:Garden ) list
|
||||
|
||||
The original example therefore must be entered as:
|
||||
|
||||
task '(project:Home or project:Garden)' list
|
||||
task '( project:Home or project:Garden )' list
|
||||
|
||||
This includes quotes to escape the parentheses, so that the shell doesn't
|
||||
interpret them and hide them from taskwarrior.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue