Merge pull request #502 from kdheepak/fix-documentation

Update advanced.md
This commit is contained in:
Dheepak Krishnamurthy 2023-05-30 12:16:39 -04:00 committed by GitHub
commit 639dfa38bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,13 @@ uda.taskwarrior-tui.shortcuts.2=~/.config/taskwarrior-tui/shortcut-scripts/sync.
... ...
``` ```
The file can have any name in any location, but must be executable. The executable file can be placed in any location.
To make a file executable:
1. Run `chmod +x /path/to/script` to modify the executable flag.
2. Add `#!/usr/bin/env bash`, `#!/usr/bin/env python` or whatever is appropriate for your script.
By default, keys `1`-`9` are available to run shortcuts. By default, keys `1`-`9` are available to run shortcuts.
When you hit the shortcut, the script will be executed with the `selected_tasks_uuid` as an argument: When you hit the shortcut, the script will be executed with the `selected_tasks_uuid` as an argument: