X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/09f6572d50f43509715cd634b47c6e2cd5afe944..a8767d0e7ed2339be98c6244ead25d63034f85b9:/.config/taskwarrior/hooks/task.shift-recurrence/README.md?ds=sidebyside diff --git a/.config/taskwarrior/hooks/task.shift-recurrence/README.md b/.config/taskwarrior/hooks/task.shift-recurrence/README.md new file mode 100644 index 0000000..58792c0 --- /dev/null +++ b/.config/taskwarrior/hooks/task.shift-recurrence/README.md @@ -0,0 +1,50 @@ +Taskwarrior Shift All Recurrence Attributes Hook +------------------------------------------------ + +This is a hook for TaskWarrior (http://www.taskwarrior.org), +which allow your recurrent tasks to inherit ``wait``, ``scheduled`` +and ``until`` attributes from the parent. + +Install +------- + +Note: This hook has been rewritten to leverage taskpirate, for greater hook efficiency. +Please see https://github.com/tbabej/taskpirate for instructions. Don't worry, it's straightforward. + +``` +git clone https://github.com/tbabej/taskwarrior-shift-all-recurrence-hook.git +cp taskwarrior-shift-all-recurrence-hook/on-* ~/.task/hooks/ +``` + +This hook leverages tasklib, so you need to install that too: + +``` +pip install tasklib +``` + +Use case +-------- + +Consider you have a periodic task, which is valid only for the certain day, +e.g. on every Sunday you go running. + +``` +$ task add due:sunday recur:weekly +``` + +However, TaskWarrior will display the task right away, and you want to +showing up only during the weekend, so that it does not distract your task +list during the work week. + +If you try to add the recurrence again, this time with ``wait`` attribute, +to hide the task until it is not relevant for you: + +``` +$ task add due:sunday recur:weekly wait:saturday +``` + +You will find out that TaskWarrior does not let tasks generated by this +recurrence inherit the ``wait`` attribute, in the same manner as it does +with the ``due`` attribute. + +This hook solves that.