From: Tomas Babej Date: Wed, 27 May 2015 09:42:21 +0000 (+0200) Subject: Merge branch 'master' of github.com:tbabej/taskwarrior-shift-all-recurrence-hook X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/85af7d862d8d778edcdbc5c9bee5e37e48abe82e?hp=e0e960a40f15f3cfa7752c33fadb8d6fb2502591 Merge branch 'master' of github.com:tbabej/taskwarrior-shift-all-recurrence-hook --- diff --git a/README.md b/README.md index 2103e72..58792c0 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ 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/ diff --git a/pirate_add_shift_recurrence.py b/pirate_add_shift_recurrence.py index 88c0fec..7eb5c77 100644 --- a/pirate_add_shift_recurrence.py +++ b/pirate_add_shift_recurrence.py @@ -18,6 +18,7 @@ def is_new_local_recurrence_child_task(task): return True tw = TaskWarrior(data_location=os.path.dirname(os.path.dirname(sys.argv[0]))) +tw.config.update(dict(recurrence="no")) def hook_shift_recurrence(task): if is_new_local_recurrence_child_task(task):