Taskwarrior: Display task as tree

Created on 4 Apr 2018  路  6Comments  路  Source: GothenburgBitFactory/taskwarrior

Hello,

I would propose to implement a command to display the selected tasks as a tree using their dependencies. The use case for this would be to view the dependencies of tasks easily.

The actual display of the tree could look similar to what the "tree" utility looks on linux.
image

enhancement help wanted

Most helpful comment

This is not enough, because you can easily build directed acyclic graph, like below, that cannot be correctly displayed with _tree-like_ command.

All 6 comments

This is not enough, because you can easily build directed acyclic graph, like below, that cannot be correctly displayed with _tree-like_ command.

Well you could display items twice or just display the items with only one dependency. But I see your point

This is not so easy, because even in this simple example you need to display d and e items three times to capture all dependencies. More nodes means much more duplication.

Something like git log --graph might be a better way.

I'm very open to representing dependencies in a more visual way, but a simple tree is not enough, as @maln0ir indicates. I'm leaving this issue open, hoping for more input.

One could show a tasks only if all of its dependencies appeared earlier in the tree.
The above example would look like this:

a
|- b
|- c
   |- d
      |- e

The data is already there. As far as I understand it TaskWarrior doesn't concern itself with building ever more elaborate display measures for the same data.

This is a good job for an external script. Looking around I found the ruby script twdeps. It generates PNG images like this:
IMAGE

If that's not for you then maybe look at the pythons cript taskwarrior_depends.

Was this page helpful?
0 / 5 - 0 ratings