GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Question about adding a hook

Open
#3,214 4 comments 0 reactions 0 assignees View on GitHub
topic:hooks
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

I have an use case where it'd be very helpful to have a hook at the time of urgency calculation. Basically here: https://github.com/GothenburgBitFactory/taskwarrior/blob/1c11f8b650cdd15526c6694d9032b645485660fa/src/Task.cpp#L2202

Having such hook, while potentially detrimental to speed (like any other hook), would give advanced users a lot of flexibility to bring interesting "business" rules to the urgency calculation. Just as an example, what I'd like to do is change the urgency of a task based on a formula taking as input the value of a numeric UDA I defined.

I'm happy to implement it and make a PR, but before spending the time I'd like to know if there's interest and a feature like that has any chance of being considered for merging.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.