pub struct Conf {
pub range: ItemRange,
pub projects: Vec<String>,
pub contexts: Vec<String>,
pub regex: Option<String>,
pub use_regex: bool,
pub all: TodoStatus,
pub due: Option<Due>,
pub thr: Option<Due>,
pub rec: Option<Recurrence>,
pub pri: Option<Priority>,
}
Expand description
A rules for todo list filtering. Setting a field to None or empty vector means that the corresponding property is not checked. All text comparisons are case-insensitive.
Fields
range: ItemRange
Range of todo IDs
projects: Vec<String>
List of all project tags that a todo must include. The search supports very limited pattern matching:
foo*
- finds all todos with projects that starts withfoo
*foo
- finds all todos with projects that ends withfoo
*foo*
- finds all todos with projects that containsfoo
contexts: Vec<String>
List of all context tags that a todo must include. The search supports very limited pattern matching:
foo*
- finds all todos with contexts that starts withfoo
*foo
- finds all todos with contexts that ends withfoo
*foo*
- finds all todos with contexts that containsfoo
regex: Option<String>
A text that any of text, project, or context must contain
use_regex: bool
If it is true
, regex
is treated as regular expression. If use_regex
is false
, the value of regex
is just a substring to search for
all: TodoStatus
All incomplete, completed, or both types of todos
due: Option<Due>
Search for a due date: any, no due date, or withing range
thr: Option<Due>
Search for a threshold date: any, no threshold date, or withing range
rec: Option<Recurrence>
Search for a recurrent todos
pri: Option<Priority>
Search for a todos with priority or priority range