vscode-todo-plus icon indicating copy to clipboard operation
vscode-todo-plus copied to clipboard

Task dependencies on other tasks

Open freakinhippie opened this issue 4 years ago • 5 comments

It would be very helpful if tasks could reference other tasks as dependencies. Simple dependencies within a project can already be achieved with task ordering, but when there are dependencies on other projects there is no obvious way to track them. I'm not certain how it could be implemented since the tasks don't have identifiers though.

freakinhippie avatar Jun 17 '20 16:06 freakinhippie

I'm not certain how it could be implemented since the tasks don't have identifiers though.

Yeah. Maybe potentially we could assign a incrementing counter to each task and then use that to reference them, kind of like in github.

fabiospampinato avatar Jun 17 '20 16:06 fabiospampinato

That sounds reasonable to me, though I'm not sure what impact it would have on other people's workflow. Thanks for considering it.

freakinhippie avatar Jun 17 '20 19:06 freakinhippie

That could work. Would the id's be in a separate text file, outside of the document, or in the header?

What about an id @id tag assigned to the original task and reference tag @ref to the task that will have the reference when the user chooses to reference the task, possibly with some short user-defined name for the reference and an automatic number? When assigning the reference, the user types to search for the task and then selects it. I'm assuming TODO has a searchable index of all tasks somewhere since there is a sidebar for searching tasks already.

sahil48 avatar Jun 23 '20 17:06 sahil48

I like the @id and @ref suggestions because I think the information should be kept with the tasks themselves.

freakinhippie avatar Jun 23 '20 17:06 freakinhippie

That sounds reasonable to me, though I'm not sure what impact it would have on other people's workflow. Thanks for considering it.

It would be opt-in.

That could work. Would the id's be in a separate text file, outside of the document, or in the header?

I think the best way would be to put something like this: #number at the end of each todo.

This is a pretty big change though, I don't think I will have time to implement it, possibly ever, somebody else would need to do the work on this for this to happen.

fabiospampinato avatar Jun 24 '20 11:06 fabiospampinato