beaussan / update-time-on-edit-obsidian

MIT License
169 stars 15 forks source link

Fix broken canvas creation #63

Closed RandomSpaceship closed 10 months ago

RandomSpaceship commented 1 year ago

Added additional check to prevent modifying canvas files during their creation.

Canvas files appear to be created as Canvas.md and renamed to Canvas.canvas after the fact. However, the plugin updates the file's "frontmatter" during creation, which makes the file invalid.

Also use file.extension instead of endsWith.