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
Copy file name to clipboardExpand all lines: src/blocks/taskwarrior.rs
+25-4Lines changed: 25 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,18 +9,30 @@
9
9
//! `interval` | Update interval in seconds | `600` (10min)
10
10
//! `warning_threshold` | The threshold of pending (or started) tasks when the block turns into a warning state | `10`
11
11
//! `critical_threshold` | The threshold of pending (or started) tasks when the block turns into a critical state | `20`
12
-
//! `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. | ```[{name = "pending", filter = "-COMPLETED -DELETED"}]```
12
+
//! `filters` | A list of tables describing filters (see bellow) | ```[{name = "pending", filter = "-COMPLETED -DELETED"}]```
13
13
//! `format` | A string to customise the output of this block. See below for available placeholders. | `" $icon $count.eng(w:1) "`
14
14
//! `format_singular` | Same as `format` but for when exactly one task is pending. | `" $icon $count.eng(w:1) "`
15
15
//! `format_everything_done` | Same as `format` but for when all tasks are completed. | `" $icon $count.eng(w:1) "`
16
16
//! `data_location`| Directory in which taskwarrior stores its data files. Supports path expansions e.g. `~`. | `"~/.task"`
17
17
//!
18
+
//! ## Filter configuration
19
+
//!
20
+
//! Key | Values | Default
21
+
//! ----|--------|--------
22
+
//! `name` | The name of the filter |
23
+
//! `filter` | Specifies the criteria that must be met for a task to be counted towards this filter |
24
+
//! `config_override` | An array containing configuration overrides, useful for explicitly setting context or other configuration variables | `[]`
0 commit comments