alphapapa / org-sidebar

A helpful sidebar for Org mode
GNU General Public License v3.0
527 stars 16 forks source link

Projects contain too many same todo headlines #20

Closed llcc closed 3 years ago

llcc commented 4 years ago

Me again. Thanks again.

I manage several projects in one org file, and those projects own almost some same subtasks as below. Those subtasks will be collected into the todo tree buffer several times after calling org-sidebar-toggle, which could cause some visual problems sometimes. You can confirm the image below.

Do you probably think it is good to offer any customized option to add some indentation to make its hira

#+title: Project notebooks

* TODO Project 1
** TODO Child Task 1
*** TODO a more smaller task
** TODO Child Task 2
*** TODO a more smaller task
** TODO Child Task 3
*** TODO a more smaller task

* TODO Project 2
** TODO Child Task 1
*** TODO a more smaller task
** TODO Child Task 2
*** TODO a more smaller task
** TODO Child Task 3
*** TODO a more smaller task

* Some notes
* Footnotes

image

alphapapa commented 4 years ago

Indenting the headings according to their depth could be helpful in some cases, however if the headings are not in file order, or if their parent headings are not displayed, they would not be displayed correctly, i.e. according to the outline structure. So that probably would not be a good idea.

Note also that org-sidebar uses org-ql-view now, so this functionality is part of org-ql, not org-sidebar.

If you need a structured outline view, you should probably use, e.g. org-sidebar-tree, so it will correctly reflect the outline structure.

Alternatively, a more specific sidebar query that displays more specifically relevant tasks could be useful. Try pressing v in the sidebar item buffer and you can edit the query.