todoman icon indicating copy to clipboard operation
todoman copied to clipboard

Add support for dependencies in tasks

Open tionis opened this issue 11 months ago • 4 comments

RFC9253 introduces some additional RELTYPEs to the standard, one of them being:

RELTYPE=DEPENDS-ON: This indicates that the current calendar component depends on the referenced calendar component in some manner. For example, a task may be blocked waiting on the other, referenced, task.

It would be nice to have support for that, as tasks often do have blockers and nearly no to-do apps consider this problem. I'm not sure at the moment how that should look or work exactly, though.

tionis avatar Jan 18 '25 14:01 tionis

After thinking about it I think it would be nice to be able to specify a list of tasks that need to be finished before in the edit panel (e.g. by specifying it's id, perhaps later an fzf style interactive selector?) Show and list would also have to show dependencies somehow e.g. via something like @depends_on(1, 2) or whatever fits the current style best.

The main benefit would then be an integration into todo list --startable as only tasks for which all dependencies are done would be shown here (unless the task is overdue maybe?)

tionis avatar Jan 19 '25 04:01 tionis

Ups, wrong button. Could some please reopen this, I don't have permission to do it. Perhaps @WhyNotHugo ?

tionis avatar Jan 19 '25 04:01 tionis

At a surface level this sounds good. I'm not sure if we'd reflect this in the output of todo list in any way.

WhyNotHugo avatar Jan 21 '25 17:01 WhyNotHugo

I'll play around with the idea in my fork and report back here when I found a satisfying solution for the UI.

tionis avatar Jan 21 '25 21:01 tionis