beaussan / update-time-on-edit-obsidian

MIT License
169 stars 15 forks source link

When other plugins create pages with templates this plugin breaks them #59

Closed elvarb closed 1 year ago

elvarb commented 1 year ago

Similar or same as https://github.com/beaussan/update-time-on-edit-obsidian/issues/50

Happens most of the time with my templates. I think this is because this plugin triggers as soon as the page is created and we have issues as templates can be applied in many ways/steps when creating a page that uses a template.

Issues when...

No issues when...

Example when I use Quickadd to add a meeting note. I trigger this in my daily notes using / command which prompts for a meeting title, creates the file from a template in the right folder and links to it in the daily note.

---
created: 2023-08-31T10:36
updated: 2023-08-31T10:36
---

---
title: testing
date: 2023-08-31
startTime: 2023-08-31T10:36
endTime: 2023-08-31T11:36
type: meeting
---
elvarb commented 1 year ago

Seems there was a flaw with the template I was using. When I opened it the properties did not show up in the new property list but were visible in the source view.

Make sure that there is no extra line or lines above the --- in the template. This has not been an issue until now, both this plugin and the new properties list requires that the first line in the note starts with ---