Skip to content

Organize Tags with Hierarchy Using the Obsidian Plugin "Tags Routes"

kctekn edited this page Sep 5, 2024 · 2 revisions

Tagging System Specification

1. Function Scope

  1. Tagging Paragraphs:

    • A tag is associated with an entire paragraph. In this context, a paragraph is defined as a block of text separated by empty lines in a note.
    • Tags can be added at the end of any line within a paragraph. All tags within a paragraph will be considered as associated with that paragraph.
    • When a tag is selected in the interface, the entire paragraph it is associated with will appear in the search results.
  2. Multiple Tags:

    • You can add multiple tags at the end of any line within a paragraph. These tags will all be linked to the paragraph.
    • Tags added at the same line will share the same timestamp, indicating when they were applied.

2. Hierarchical Tags

  1. Nested Tags:
    • You can create nested tags using the format #tag/sub-tag/another-sub-tag.
    • The system will automatically generate a hierarchy for these tags:
      • #another-sub-tag will be linked to #sub-tag.
      • #sub-tag will be linked to #tag.
    • All related markdown files will link to the root tag (#tag), providing a clearer graph view of the tag structure.
    • You can also tag content with just #tag, #tag/sub-tag, or #tag/sub-tag/another-sub-tag. The system will create the appropriate hierarchy and calculate the tag counts accordingly.

For example: if you tag things with followig tags in a myFile-1.md:

  • paragrap-1 #myTag/mySubTag-1/mySub-Tag-2
  • paragraph-2 #myTag/mySubTag-1
  • paragraph-3 #myTag/mySubTag-1/mySub-Other-Tag

In myFile-2.md, it has:

  • paragraph-4 #myTag/mySubTag-1

You will see this hierarchy in the graph:

image