eikek / docspell

Assist in organizing your piles of documents, resulting from scanners, e-mails and other sources with miminal effort.
https://docspell.org
GNU Affero General Public License v3.0
1.66k stars 127 forks source link

Display tag and categories as tree #573

Open eikek opened 3 years ago

eikek commented 3 years ago

From here https://github.com/eikek/docspell/issues/568#issuecomment-761533086 (and following comments)

This is only about the view of the category and tags. Currently the list of categories is rendered below a list of tags, where both are sorted by must usage. Another option is to provide a nested tree-like view.

This is probably also required for nested tags, if #413 is done first, then this issue is void.

gandy92 commented 2 years ago

Would this also be possible for the drop-down when adding new tags? It could show the tags grouped by their category like this:

Category 1
   tag 1a
   tag 1b
   tag 1c
Category 2
   tag 2a
   tag 2b

Searching for a tag by typing in the field would reduce the list but keep the grouping, e.g. for search term b:

Category 1
   tag 1b
Category 2
   tag 2b

Not sure if the search should match the category, maybe if it starts with a colon, e.g. for search term :ory 2:

Category 2
   tag 2a
   tag 2b
eikek commented 2 years ago

Hey, sorry missed this message somehow. Yes indeed, the new component should handle both cases. There is also #960 that touches this topic.