+function tick() {
+ # TODO: have duration as an option to allow multiple filter
+ if (( # < 1 || # > 2)); then
+ print >&2 "Usage: $0 <filter> [duration]"
+ return 1
+ fi
+ task $1 mod wait:${2:-1h}
+}
+
+function turg() {
+ local context=$(task _get rc.context)
+ local context_read=$(task _get rc.context.$context.read)
+ local urg_task=$(task +READY $context_read _urgency | sort -k4 -n | tail -1 | cut -d" " -f2)
+ task $urg_task $@
+}
+
+# TODO: function to show the latest report
+