This is simple script for making subtasks in taskwarrior. Very useful if use taskwarrior-tui.
[[ ! -f /tmp/task-subtasks.sh ]] && curl -s https://gist.githubusercontent.com/SimonHryszko/462afc1a03b6e5038018e0f989b39175/raw/68e33386d00d90007c8f780da9cc227f22a4957f/task-subtasks.sh -o /tmp/task-subtasks.sh; chmod +x /tmp/task-subtasks.sh
- Download script to location of your choice
- Make it executable
chmod +x task-subtasks.sh
echo 'uda.taskwarrior-tui.shortcuts.2=/tmp/task-subtasks.sh' >> "$HOME/.taskrc"
Add to your ~/.taskrc
:
uda.taskwarrior-tui.shortcuts.2=/path/to/task-subtasks.sh
2
is the shortcut number. You can use any number you want.
- Select task in taskwarrior-tui
- Press
2
(or any other number you choose) - Enter subtask name
- Press
Enter
- Repeat steps 3-4 to add more subtasks
- Press
^D
(Ctrl+D
) to finish
If you have any problems, please comment this gist.
If you like it, you can buy me a coffee :)