obsidian-tasks-group/obsidian-tasks

Support showing tasks as indented

wenlzhang opened this issue · 2 comments

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.

Tasks of Project A:

- [ ] Task level 1
  - [ ] Task level 2
    - [ ] Task A #task
  - Item level 2
    - [ ] Task B #task

Or maybe this can be an option, and the user can decide whether to show tasks as indented or not in the configuration page.

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.

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 #task then, like what is done when showing the number of tasks?