What I’m trying to do
I have my base view embedded in another note, which has the yaml property ‘tags’ as a list. Now I’m trying to make it search in all of my clippings for any notes sharing the same tags + others, but it is failing to find anything. Does anyone know what I am missing?
Things I have tried
Attempted converting ‘this.tags’ into a list so that I can use some variant of ‘file.hasTags()’. However, this.tags creates some kind of list format when hasTag wants a string.
Closest I got is something like: file.hasTag(this.Tags.toString().replace(/#/g, ‘’)), but I don’t know how to encase each tag in quotations (eg, “A”, “B”). Seems to work when single tags are under ‘this.Tags’.
I thought file.hasTag(‘"’ + this.Tags.toString().replace(/#/g, ‘’).replace(/, /g, ‘", "’) + ‘"’) would work, but using it as a filter doesn’t pull anything.
