tq-obsidian
tq-obsidian copied to clipboard
Nested tasks
Is your feature request related to a problem? Please describe. It's not really a problem.
Describe the solution you'd like I like to group tasks by having a master task item that composes of multiple sub tasks. Currently, this does not seem supported in the plugin, as the query UI does not show the nested tasks.
In the task itself, you can already see what I'd like it to look like.
Describe alternatives you've considered This is solvable by just using one 'real' task per sub item and selecting them in a separate query. This allows for more detailed metadata per task as well, which is lost in the example I've pulled together.
Additional context Downside of the approach I show above is that only the parent task has the tracking metadata. It might be cool to link a parent task to child tasks so you keep all the tracking features while also be able to (maybe automatically) check the parent task when all child tasks are done.
Let me know if you need more context or explanation.
@BasLangenberg, thanks for the feature suggestion.
This sounds related to #9. However I think that would likely be a read-only view. You would still need to open the task if you wanted to check off a sub-item.
I think the idea of linking tasks is not unreasonable, however it would be a very large change. I'm not ruling it out, but it's not something I'm likely to work on in the near future.
Pull requests welcome 🙂
I am imagining this could be achieved with a parent
frontmatter. It can have the name of the parent note as a value. Only issue is note names are not the most ergonomic. The parent tag would let someone build trees of tasks.
The key would be two selectors:
-
subtask-depth: int/true
would show X depth of the task tree (default0
,true
to show the entire tree). Right now just show sub tasks as a normal task but could revamp the UI to actually nest them later.
For viewing sub tasks from the parent note:
-
child-of: true/false
. Defaults tofalse
. Filters to tasks that are in the tree of the file itself. Can utilize the task view to see sub tasks of the task
I can't commit to doing a PR but am interested.
Thanks for the feedback! I'm not a typescript/javascript developer, but there might be no better time to pick it up than the present. No promises, but I might spend a couple of hours on this in the coming week.