mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-23 20:16:41 +02:00
docs: Update documentation 📚
This commit is contained in:
parent
b6a4a8c8a0
commit
e894000930
3 changed files with 15 additions and 5 deletions
13
docs/faqs.md
Normal file
13
docs/faqs.md
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue