You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify taskwarrior block to support multiple named filters
This commit deprecates `filter_tags` in favour of `filters`.
If `filter_tags` are specified, the block behaves like the
the existing implementation, and two filters are created:
- all: `-COMPLETED -DELETED`
- filtered: `-COMPLETED -DELETED <tags>`
This emulates the modes of `TaskwarriorBlockMode` which has also been
removed.
Clicking now cycles through the filters, of which an arbitrary number
may be specified.
[[block.filters]]
name = "today"
filter = "+PENDING +OVERDUE or +DUETODAY"
`interval` | Update interval, in seconds. | No | `600` (10min)
1333
1337
`warning_threshold` | The threshold of pending (or started) tasks when the block turns into a warning state. | No | `10`
1334
1338
`critical_threshold` | The threshold of pending (or started) tasks when the block turns into a critical state. | No | `20`
1335
-
`filter_tags` | Deprecated in favour of `filter`. A list of tags a task has to have before its counted as a pending task. | No | ```<empty>```
1336
-
`filter` | A filterthat a task has to match to be counted as a pending task. | No | ```<empty```
1339
+
`filter_tags` | Deprecated in favour of `filters`. A list of tags a task has to have before its counted as a pending task. The list of tags will be appended to the base filter `-COMPLETED -DELETED`. | No | ```<empty>```
1340
+
`filters` | A list of tables with the keys `name` and `filter`. `filter` specifies the criteria that must be met for a task to be counted towards this filter. | No | ```[{name = "pending", filter = "-COMPLETED -DELETED"}]```
1337
1341
`format` | A string to customise the output of this block. See below for available placeholders. Text may need to be escaped, refer to [Escaping Text](#escaping-text). | No | `"{count}"`
1338
1342
`format_singular` | Same as `format` but for when exactly one task is pending. | No | `"{count}"`
1339
1343
`format_everything_done` | Same as `format` but for when all tasks are completed. | No | `"{count}"`
0 commit comments