mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 14:36:42 +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
|
- search
|
||||||
- exclude:
|
- exclude:
|
||||||
glob:
|
glob:
|
||||||
- "*.1"
|
- '*.1'
|
||||||
|
|
||||||
# Theme
|
# Theme
|
||||||
theme:
|
theme:
|
||||||
|
@ -48,6 +48,7 @@ nav:
|
||||||
- Installation: installation.md
|
- Installation: installation.md
|
||||||
- Quick Start: quick_start.md
|
- Quick Start: quick_start.md
|
||||||
- Keybindings: keybindings.md
|
- Keybindings: keybindings.md
|
||||||
|
- FAQs: faqs.md
|
||||||
- Configuration:
|
- Configuration:
|
||||||
- Key configuration: configuration/keys.md
|
- Key configuration: configuration/keys.md
|
||||||
- Color configuration: configuration/colors.md
|
- Color configuration: configuration/colors.md
|
||||||
|
|
|
@ -1810,10 +1810,6 @@ impl TaskwarriorTui {
|
||||||
match output {
|
match output {
|
||||||
Ok(o) => {
|
Ok(o) => {
|
||||||
if o.status.success() {
|
if o.status.success() {
|
||||||
let output = String::from_utf8_lossy(&o.stdout);
|
|
||||||
if !output.is_empty() {
|
|
||||||
self.error = Some(format!("`{:?}`:\n{}", &command, output));
|
|
||||||
}
|
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
Err(format!(
|
Err(format!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue