Exactly. (Hope there is an API for that so it can reuse Obsidian’s built-in mechanisms. With 0.12, they’ve been talking about optimizations for large vaults, so maybe the internal search could be used for that?)
Plus everything I said in “Hint”.
I’m only still wondering how to OR and AND tag searches. Maybe if multiple tags are given on one markerTags line as above, they must all be in the note (AND function), and if given on multiple lines, they’re ORed? As an example:
markerFolder: People and Locations
markerFolder: Interests/Maps of the World
markerTags: [people, friends]
markerTags: Paris
would search for notes that
- (are in the folders
People and Locations OR Interests/Maps of the World), AND
- ((contain both tags
#people AND #friends), OR
- the tag
#Paris)
I added parentheses to make the logic clearer (I hope).
Only having
markerTags: Paris
or
markerTags: [Paris]
would search in the whole vault. Using the [Paris] syntax might be more logical here, because you can use a YAML set as an array, whilst markerTags: Paris would return a str (?). Also, markerTags is plural, to symbolize that more than one can be used.
I wonder if you have something in Obsidian’s API that gives you “tags in this note”, because tags can also appear as a subtag (cities/Paris) and within the note content (Talking about #Paris, we find that …).
What do you think? And would others deem this useful?
And yes, I think the maps rendered faster here. Although clicking on links that open a browser seems slower, but that may well be my system.