GothenburgBitFactory / task-timewarrior-hook

MIT License
4 stars 0 forks source link

Taskwarrior hook script doesn't start recording new active task #16

Open ChargingBulle opened 4 years ago

ChargingBulle commented 4 years ago

When running the following:

task add start:now Do the thing

one expects that this a) creates the task and b) starts the recording. But instead it just creates the task and doesn't start the recording.

This is due to the hook script only being called when a task is modified but not when a task is created. Related: GothenburgBitFactory/task-timewarrior-hook#17.

Please be aware that the following is also possible and in my personal workflow quite common:

task add start:-30min Do the thing

Thanks for your continuing effort to deliver great cli-based to do manager.

lauft commented 4 years ago

First step would be to provide a on-add.timewarrior hook (as there is for on-modify) which would parse the on-add event and trigger the appropriate timew commands.

Next step could then be to merge those two hooks into a single script if feasible...