mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Add taskwarrior-tui specific filter
This commit is contained in:
parent
fe84e09b9d
commit
e2f84e858f
2 changed files with 10 additions and 2 deletions
|
@ -346,8 +346,15 @@ impl Config {
|
|||
}
|
||||
|
||||
fn get_filter(data: &str, report: &str) -> Result<String> {
|
||||
Self::get_config(format!("report.{}.filter", report).as_str(), data)
|
||||
.context(format!("Unable to parse `task show report.{}.filter`.", report))
|
||||
if let Some(s) = Self::get_config(
|
||||
format!("uda.taskwarrior-tui.task-report.{}.filter", report).as_str(),
|
||||
data,
|
||||
) {
|
||||
Ok(s)
|
||||
} else {
|
||||
Self::get_config(format!("report.{}.filter", report).as_str(), data)
|
||||
.context(format!("Unable to parse `task show report.{}.filter`.", report))
|
||||
}
|
||||
}
|
||||
|
||||
fn get_data_location(data: &str) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue