diff --git a/docs/faqs.md b/docs/faqs.md new file mode 100644 index 0000000..7df00cd --- /dev/null +++ b/docs/faqs.md @@ -0,0 +1,13 @@ +# Frequently Asked Questions (FAQs) + +### Does `taskwarrior-tui` show error messages when running shell commands or shortcuts + +`taskwarrior-tui` shows an error prompt for shell if: + +1. the subprocess fails +2. the subprocess succeeds but prints to stdout +3. the subprocess is empty + +`taskwarrior-tui` shows an error prompt for shortcuts if: + +1. the shortcut fails diff --git a/mkdocs.yml b/mkdocs.yml index be47889..0a57413 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -21,7 +21,7 @@ plugins: - search - exclude: glob: - - "*.1" + - '*.1' # Theme theme: @@ -48,6 +48,7 @@ nav: - Installation: installation.md - Quick Start: quick_start.md - Keybindings: keybindings.md + - FAQs: faqs.md - Configuration: - Key configuration: configuration/keys.md - Color configuration: configuration/colors.md diff --git a/src/app.rs b/src/app.rs index 0afa84e..23e8870 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1810,10 +1810,6 @@ impl TaskwarriorTui { match output { Ok(o) => { if o.status.success() { - let output = String::from_utf8_lossy(&o.stdout); - if !output.is_empty() { - self.error = Some(format!("`{:?}`:\n{}", &command, output)); - } Ok(()) } else { Err(format!(