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

Customizable behavior when max_active_tasks is set to 1 #5

Closed kostajh closed 9 years ago

kostajh commented 9 years ago

Options defined in config variable max_active_tasks_exceeded:

  1. warn_and_do_nothing
  2. stop_current_task_start_new_task
  3. prompt_user ("Are you sure you want to stop X task and start Y task?")
kostajh commented 9 years ago

Looking at this a bit more, seems like prompt_user is not going to be possible, and stop_current_task_start_new_task will require some trickery, because invoking task start/stop in the hook is going to cause problems.