Support showing tasks as indented #60
Replies: 22 comments 35 replies
-
The issue with this is that one would have to show all parents up to the top level one regardless of whether they are tasks or filtered. Otherwise they would be indented below unrelated tasks in the list above them, which would be confusing. Showing tasks which should be filtered to have the correct hierarchy is also confusing. I have no idea yet how to solve this gracefully. I acknowledge the issue, but it’s not simple. |
Beta Was this translation helpful? Give feedback.
-
Indeed, it can be confusing to show the hierarchy if there are several levels of tasks/items. Would it be possible to dim tasks/items that do not have the tag |
Beta Was this translation helpful? Give feedback.
-
The more I think about it, the more complex this is 😅 If you have a query for "only open tasks", then how would you render the following?
|
Beta Was this translation helpful? Give feedback.
-
I think this would be helpful - would allow easier management of subtasks |
Beta Was this translation helpful? Give feedback.
-
This feature would be a game-changer to me. I always use nested todo lists and would love to see them in Tasks! 😄 I think you could first start with a rather direct strategy: 1. given the list of filtered tasks, include the context of each task (ie the sequence of all parent tasks) in the form of a task tree (which would actually be a simple list, akin to a path) and 2. then merge these trees so that duplicates don't appear (it might be that a leaf and its parent both get to the first filtered list, but you don't want them to appear twice). From there, you could add more complex rules (for instance, if a leaf is not done but one of it's parents is done, consider it done), but I think this can come later |
Beta Was this translation helpful? Give feedback.
-
For whatever it may be worth: I prefer Tasks' current presentation of todo items as standalone entities and definitely would not want results to include the context of every item that satisfies their parameters. If it could be hidden (like the task count) in the query results, then I wouldn't object if Tasks added a short string or emoji to indicate that a task is a "child" of another task. The user could then choose to use the backlink to open that task up "in context" in its source note. |
Beta Was this translation helpful? Give feedback.
-
What if Tasks used a 'tooltip text' to present a view of the task in the context of a few immediately preceding and following lines in its source note, with indentation intact when the user puts the mouse cursor is over the backlink of a query result? This would simultaneously eliminate the need for @schemar to make and write complicated code based on assumptions about how notes and lists are structured, avoid 'cluttering' the query results with information that not everyone wants, and make it easy to see the context of a returned task whenever you wish. |
Beta Was this translation helpful? Give feedback.
-
Hi there, nice plugin! If the child task comes alone, it will have a strange indentation, but I don't think that's a big problem. |
Beta Was this translation helpful? Give feedback.
-
Another request for this: #770 |
Beta Was this translation helpful? Give feedback.
-
There was a related request in #1041
|
Beta Was this translation helpful? Give feedback.
-
For me it's not even about sub-tasks but sub-lists that give context. Like so: |
Beta Was this translation helpful? Give feedback.
-
Just to set people's expectations on this - implementing this will be a major, major piece of work in Tasks. I'm not saying it won't ever be done. But it won't be done any time soon, as there are so many other feature requests and bug fixes that can be done without rewriting the innards of this plugin. (I do understand the value of it. So there's no need for more comments along those lines, thanks.) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
#1634 gives a very nice explanation of how handling of nested tasks might work. I have created a new label - |
Beta Was this translation helpful? Give feedback.
-
This feature would be really, really nice, but I understand the complication + Tasks already have many users, that are used to the current behavior. I think showing the nested tasks (or lists for context) should be new options: old task lists would not be changed, but new query options would allow to specify that sub tasks are wished for. #1634 is indeed a way to do it. However, I'd suggest adding a "show task tree" query (name it better, I'm lacking imagination). The "not done" query should only apply to leaves (or nodes with only done sub nodes), so that the context of a not-done task is never lost, and indented tasks always show under their parent. I understand having a "not done" query that would still show done nodes can be confusing, but that's the simplest way I can think of not to lose the context. With a clear documentation (Kudos on that work, too, by the way!), I think it should be fine. Using something like "task tree" rather than "subtasks" in the query could also help: you can browse a tree in both directions, from roots to leaves and the other way around. Showing the whole tree implies that the whole hierarchy should be preserved. Another query might be to show not only subtasks, but also sublists. I'd keep it a separate query, even though I suppose the code used in both cases would be quite similar (but I might be wrong on that one: for subtasks, you filter on leaves' status; for sublists, the leaves have no status). Another option (but I think it should be a user preference) would be to finish all subtasks when you finish a parent task. It makes sense from a logical point of view: when you cut a branch, it dies. Still, everyone works in a different manner with tasks and I don't think it would be a good idea to make it the default behavior. |
Beta Was this translation helpful? Give feedback.
-
In terms of seeing what nested tasks look like, you might look at how Zim wiki does this. |
Beta Was this translation helpful? Give feedback.
-
Sorry, that was a rushed comment. I'd like to move to Obsidian from Zim (I prefer markdown files to its format; nicer table editor; mobile clients) but I am dependent on its task manager which supports nesting and inherited tags and priorities. (I also like using simple text specification to icons for priorities and dates.) I was looking at Obsidian issues to see if these are likely and thought to recommend the way Zim presents completed parent items.
|
Beta Was this translation helpful? Give feedback.
-
I have trouble even with a really simple case. I love the Tasks plugin, but I need indentation. |
Beta Was this translation helpful? Give feedback.
-
Hello! I'm in a similar place, where indented task lists are essential for organization by project or subtasks. If there could be a query to preserve this structure, that would be phenomenal. |
Beta Was this translation helpful? Give feedback.
-
Thankfully, looks like work on this has started: |
Beta Was this translation helpful? Give feedback.
-
I'm delighted to announce that this is now supported in Tasks 7.12.0. See the documentation to find out how it works, and how to enable it either in individual queries... or if you wish, add it to your Global Query to turn it on by default. This rendering step is the first in a series of steps to fully support nested tasks in Tasks - it is already really very useful. |
Beta Was this translation helpful? Give feedback.
-
If tasks are shown as indented, it would be easier to connect them to the context and the corresponding projects.
If the tasks are indented, maybe they can be indented the same as they are in the source file, whether the parent has the tag
#task
or not and whether the parent is a task or a list item or not. For instance, the following Task A and Task B can be shown as they are.Or maybe this can be an option, and the user can decide whether to show tasks as indented or not in the configuration page.
Beta Was this translation helpful? Give feedback.
All reactions