kostajh / taskwarrior-time-tracking-hook

A simple Taskwarrior hook allowing one to track total time spent on a task.
137 stars 24 forks source link

Max active tasks #3

Closed kostajh closed 9 years ago

kostajh commented 9 years ago

Not sure if you'd want this here, but I think it's relevant to a time tracking plugin.

This feature would involve creating a setting in ~/.taskrc, timetracking.max={int}. By default I would set it at 1.

In this hook, on task start, we run the command task show timetracking.max to get the max active tasks allowed, and then task +ACTIVE status:pending count to see how many active tasks there are. If TW's active task count >= timetracking.max, prevent the task from starting.

coddingtonbear commented 9 years ago

+1 looks reasonable!