-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Templater Hides Properties on Obsidian 1.5.0 #1253
Comments
Try pressing enter after inserting. I have line numbers enabled, and when I tested this behavior, I could see the line number change from line 1 to line 5, even though the cursor didn't move further down. If I press enter, the properties appear, without having to reopen. This might hold some clues as to how this can be resolved. |
I have one template where I'm getting similar results (live preview appears to not be refreshed/is not in sync with source mode unless you insert a newline after applying the template) but inconsistently 🤨 ... I mean, using 2 different templates doing the same thing (erasing completely the content of a note, Properties included) relying on 2 different Obsidian API methods, I get 2 different results: The first one relies on Here's a screen-recording illustrating that 😇 : Left side is the Testing.-.Source.vs.LP.movOn the other hand, a template relying on Testing.-.Source.vs.LP.2.movI'm just mentioning this in case it could help 😇 ... as in both cases, 99% of the template uses Obsidian API only and I just thought this could potentially give some hint as to where the issue might be 😊 ... |
I am experiencing the same thing on some of my templates but I noticed the templates that are working make use of the tp.file.cursor, tp.file.move, or custom scripts. Attached is a video that shows how adding tp.file.cursor will trigger the properties to be shown. ObsidianTemplaterBug1253.mov |
Can confirm for that one at least 😊 ... I used a template adding properties to a note with a I can only guess that |
Should be resolved in 1.18.2! |
With Templater 2.1.3 to avoid this behavior I needed to include this cursor command (as above) and enable option "Automatic jump to cursor". |
As @SedesGobhani said, the problem is back in version 2.1.3. |
Thanks, I'll add some tests so I don't accidentally break this again in the future. |
I believe this has been fixed again in 2.1.4 |
The Desktop Catalyst release of Obsidian 1.5.0 messed with how Templater interacts with Obsidian properties, making them disappear after adding a template.
Plugin information (please complete the following information):
Describe the bug
After adding a template to a new note, the properties fail to appear in Live Preview Mode unless I close the note and open it again. Switching between Live Preview and Source Mode does not make properties appear in Live Preview.
Expected behavior
Properties should simply appear alongside the rest of the template I add.
Screenshots
![ezgif com-video-to-gif (1)](https://private-user-images.githubusercontent.com/68677082/285061287-5234dc2a-436b-4f6b-9646-ee8527a9f635.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMTI0NjYsIm5iZiI6MTcxOTExMjE2NiwicGF0aCI6Ii82ODY3NzA4Mi8yODUwNjEyODctNTIzNGRjMmEtNDM2Yi00ZjZiLTk2NDYtZWU4NTI3YTlmNjM1LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDAzMDkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThjNTA3NTU0MGY2MzkwNzk0ZTE3YzhlZTRiOTJkZTZlNmMyNDcyZDBmMDk2MzcwMmFiMzBhN2M4MDI0NTY1YzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GD9VnOcJoNPtwTJNDxTlmnUEK0rPN5T57tq3MvEbi3k)
Additional context
This problem was replicated in Sandbox. This issue does not happen with the Templates core plugin.
The text was updated successfully, but these errors were encountered: