Dynamic Base that shows files containing the same tag

I created this base that shows all files that contain the same tag, its useful for me since I sort my notes by tag, rather than by folder.

I use these two filters on my base then pin it to the sidepanel.

file.tags.containsAny(this.file.tags)
and
file.path != this.file.path

3 Likes

Nice! I make heavy use of subtags, and only want files that match the “theme” of the current file (so ignore other tags about type, or editing/publishing stage, etc). So I use this:
file.tags.containsAny(this.tags.filter(value.contains("theme")))

For a note that has a theme tag of #theme/product, for example I then get all notes with nested tag and all sub-tags as well, so something like this