Can file and tag names used in Dataview queries be auto updated?

Not only inside the dataview queries: all content inside code blocks doesn’t update, because they’re not metadata. Links, tags, etc, inside code blocks don’t update. It’s understandable, because if, for example, a tag inside the code count as a “real” tag, then all dataview code blocks would add unwanted metadata for the page where they are placed.

I never tested the plugin Tag Wrangler… I don’t know how it works. But a generic solution (not so nice) could be an intentional field to work as a filter in the note where you place your query. Something like:

filter:: #mytag/subtag

```dataview
TABLE file.size
FROM #Quote
WHERE contains(file.etags, this.filter)
SORT file.name ASC
```

Once you update the tag name, I guess the value in filter will update too and the query will point to new tag value…

5 Likes