obsidian-map-view icon indicating copy to clipboard operation
obsidian-map-view copied to clipboard

[Feature Request] Additional configuration options for new file names

Open adamhp opened this issue 7 months ago • 3 comments

We have the ability to use {{query}}. I'd love to simply be able to use the 'name' that results from the query, or to perform some sort of regex on {{query}} itself. Ultimately, I'm trying to make the resulting note just be the location's name as returned in the name field from Google Places data.

adamhp avatar Jun 18 '25 19:06 adamhp

This should already exist, but I now see the documentation about this is in a very strange place... See here: https://github.com/esm7/obsidian-map-view?tab=readme-ov-file#adding-a-location-to-a-note

esm7 avatar Jun 19 '25 12:06 esm7

@esm7 Sorry, wasn't very clear in my original comment. I'm talking more about when creating a new file. It seems the only supported templating for that is {{date}} and {{query}}: https://github.com/esm7/obsidian-map-view/blob/241a837d72823b3d97d4acbea06a499ca3636749/src/utils.ts#L76

Using {{query}} results in a nicely formed title like, <Place Name> (<Formatted Address>), but I'd love just <Place Name> if that's possible somehow.

adamhp avatar Jun 19 '25 13:06 adamhp

Gotcha. Better templating abilities is a highly requested feature, I'll give it attention once I'm done with the massive work-in-progress 6.0.0 version.

esm7 avatar Jul 11 '25 12:07 esm7