Proper Nested Tags Support in Properties for Bases

:red_exclamation_mark: Problem

Currently, the file.hasTags() function does not handle nested tags properly when filtering by tags in Properties using the Bases plugin.

For example:

If a note has the property:

tags: [project/english]

And the filter is set to file.hasTags(“project”), this note is not returned. This breaks the expected behavior of nested tag logic, where project/english should be treated as a child of project.

:light_bulb: Why it matters
• The Dataview plugin already handles this correctly: filtering by #project includes notes with #project/english, #project/data, etc.
• Many users organize their notes hierarchically using nested tags in Properties, not inline.
• Current workaround using:

tags.toString().contains(“project”)

works, but cannot be used in the GUI filter and requires manual code editing, which is inconvenient and non-discoverable for most users.

:test_tube: Test Case

This YAML should match a project filter:

tags: [project/english]

But currently, it does not.

:white_check_mark: Expected Behavior
• When using file.hasTags(“project”), it should include any tag that starts with project/ as well.
• Nested tag matching should behave consistently between Properties and inline tags.
• Ideally, support this behavior in the GUI filter of Bases, not just in custom codeblocks.

:folded_hands: Request

Please reconsider implementing proper nested tag support in Properties.
If not possible right now, please at least:
• Reopen the previous feature request/discussions
• Add this to a roadmap or known limitation list
• Provide a GUI-friendly workaround

Thank you for your amazing work! Bases is powerful — nested tag support would make it even more intuitive.

1 Like

I was just working out what I wanted to say whilst this was pasted.

How about having a ‘StartsWith’ and ‘EndsWith’ filter in Bases.

The ‘StartsWith’ would give the ability to include the absolute parent tag (which is what ‘contains’ does for me) and all the child tags that are under that parent.

The ‘EndsWith’ would give the ability to include cases where a child might have multiple parents, but you wanted to include them together in the same base.

A ‘hierarchy’ view in bases might also be useful, it would enable display a tag based hierarchy, using the above filters.

Hello. I am going to move this to help section because this already works.

Obsidian_YB5C2YIp6Y

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.