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.
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 commandtask show timetracking.max
to get the max active tasks allowed, and thentask +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.