Skip to content

Instantly share code, notes, and snippets.

@wbsch
wbsch / on-modify.blocks_attr.py
Last active Jul 14, 2020
Taskwarrior hook script that adds a "blocks:" pseudo-attribute for adding/modifying tasks.
View on-modify.blocks_attr.py
#!/usr/bin/env python
#
# Adds the ability to add / modify tasks using a "blocks:" attribute,
# the opposite of "depends:".
#
# This script acts as an on-modify, on-add and on-launch hook at the same time.
#
### SETUP
# Save this file as
# ~/.task/hooks/on-modify.blocks_attr.py
You can’t perform that action at this time.