esm7 / obsidian-map-view

Interactive map view for Obsidian.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Add Geolocation (frontmatter) to current note" reproducable failure for any location

MattWilcox opened this issue · comments

Using "Add Geolocation (frontmatter) to current note" can fail for any location and any note when the note body contains ---.

When using this command, the resulting output is inserted immediately before the last occurance of a --- in the document.

This is wrong, and can result in the information being inserted into the body of the note instead of the frontmatter - if anyone's using that as an in-note separator.

The information should find the second occurance of --- in the note, not the last.

Worked out what this was! Made a pull request :)

commented

Thank you! 😎