Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hierarchical tags #285

Open
jthulhu opened this issue Jun 16, 2024 · 0 comments
Open

Support hierarchical tags #285

jthulhu opened this issue Jun 16, 2024 · 0 comments

Comments

@jthulhu
Copy link

jthulhu commented Jun 16, 2024

I think it would be convenient to have hierarchical tags, ie. tags that would be organized themselves as a hierarchy rather than just being a set of tags. A hierarchical naming can already be used without being builtin (ie. one can name tags A, A::B, A::C, ...). However, I usually view subtags as implying their parent, ie a file which is tagged A::B should also be tagged A ("every A::B is also a A"). This can also be achieved with implications without further support, but this means manually writing every imply.

It would be neat if, instead, such implies would be implicit, ie whenever I create a tag A::B, this ensures that the tag A exists, and creates the implication A::B -> A.

Also, it would be neat if the displaying of tags could take advantage of this hierarchy, ie showing maybe something like

$ tmsu tags
...
A
  -> B
...

rather than

$ tmsu tags
...
A
A::B

and by not showing implicitly implied tags, ie tmsu tags afile tagged with A::B would only show A::B, and not A, because it is clear that such a file is also tagged with A.

Ideally, such a feature should be optout-able, to avoid breaking the workflow of people that do not desire organizing their tags hierarchically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant