diff --git a/docs/taskwarrior-tui.1 b/docs/taskwarrior-tui.1 index fd752e0..e792d38 100644 --- a/docs/taskwarrior-tui.1 +++ b/docs/taskwarrior-tui.1 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pandoc 2.14.2 +.\" Automatically generated by Pandoc 2.16.1 .\" .TH "taskwarrior-tui" "1" "" "" "" .hy diff --git a/src/app.rs b/src/app.rs index 16f78d2..074c358 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1571,11 +1571,15 @@ impl TaskwarriorTui { task.arg("rc.json.array=on"); task.arg("rc.confirmation=off"); - task.arg(&format!( - r#""rc.report.{}.filter='{}'""#, + if let Some(args) = shlex::split(&format!( + r#"rc.report.{}.filter='{}'"#, self.report, self.filter.as_str().trim() - )); + )) { + for arg in args { + task.arg(arg); + } + } if !self.current_context_filter.trim().is_empty() && self.task_version >= *TASKWARRIOR_VERSION_SUPPORTED { task.arg(self.current_context_filter.trim()); @@ -1593,11 +1597,6 @@ impl TaskwarriorTui { let output = task.output()?; let data = String::from_utf8_lossy(&output.stdout); let error = String::from_utf8_lossy(&output.stderr); - if !error.is_empty() { - error!("{}", error) - } else if !data.is_empty() { - debug!("{}", data) - } if output.status.success() { if let Ok(imported) = import(data.as_bytes()) {