diff --git a/docs/faqs.md b/docs/faqs.md index 7df00cd..2cb6897 100644 --- a/docs/faqs.md +++ b/docs/faqs.md @@ -11,3 +11,15 @@ `taskwarrior-tui` shows an error prompt for shortcuts if: 1. the shortcut fails + +If `taskwarrior-tui` encounters a prompt by the subprocess or the shortcut, `taskwarrior-tui` will not prompt the user for input again. +This means, if you want to run a `taskwarrior` command as a shell command, you may want to pass `rc.confirmation=off` in the command. +See the following screencast as an example: + +![](https://user-images.githubusercontent.com/1813121/159824511-de66d4fc-0a59-4a65-9c74-7419c127481e.mov) + +```bash +task rc.confirmation=off context define test project:work +``` + +If you don't add `rc.confirmation=off` in the shell command, `taskwarrior-tui` will command the command but it'll fail because it won't receive any prompt.