Comments (3)
I can't reproduce this issue with your templates, though you don't have steps so I wasn't sure how you were applying the template.
Does it happen in the sandbox vault with only the Templater plugin installed? It may be another plugin conflicting with Templater and trying to modify newly created files.
2023-10-08_09-24-30.mp4
from templater.
Thanks @Zachatoo for testing.
With your hint, to use a sandbox vault, I finally found my mistake. I forgot about one setting in Templater.
I had set up the "Journal Week Next Template" as a folder template for the folder "1_areas/Journal".
So I trigger the same template with the Templater modal, that is also set as a folder template. Perhaps my template runs twice now. That would explain the empty file. And I don't see any errors in the console.
With the Templater version 1.16.0 and before, it didn't clear my template.
When I removed the folder template, all is working with my template. So, it's all good for me.
I don't know if you have defined a scenario how you want Templater to handle, if the triggered template is the same as the folder template. Perhaps my template is also a special case.
Again, thanks for your help.
from templater.
Final Update:
With the changes made for Templater version 1.16.4 the file stays with the content in it. Even with the same template set as the folder template.
Therefore this issue can be closed. Tanks again.
from templater.
Related Issues (20)
- File rename template no longer working since recent update. HOT 6
- `;` at end of interpolation command throws an error HOT 3
- Within a table in a new visual table editor, Templater causes Obsidian to render - / 1. as lists, but only if the cursor is within the cell HOT 1
- Search boxes in config freeze UI HOT 1
- Error generating daily quote HOT 6
- Can't print multiples lines in dynamic commands HOT 5
- Composite add template HOT 3
- Documentation for Config module (i.e. "tp.config" functions) is incomplete
- Templater renames newly created notes to note name of note created previously HOT 3
- tp.file.create_new() doesn't create missing sub-folders anymore HOT 3
- Add merge support for Frontmatter HOT 2
- Can I rewrite this any better - without setTimeout? HOT 2
- Notes are created in parent directory instead of specified directory HOT 7
- Add "User Script Hotkeys" in plugin settings, just like "Template hotkeys.
- <%+ tp.file.last_modified_date() %> NaN HOT 1
- <%+ tp.file.last_modified_date() %> NaN HOT 3
- [BUG & WORKAROUND] The default function tp.system.prompt() because when the enter key is pressed nothing happens. HOT 3
- "FileName.md has been modified externally" message after updating frontmatter via tp.hooks.on_all_templates_executed HOT 1
- Raw encoded file is causing lag with syntax highlighting enabled HOT 4
- Too small input area for folders path in New Folder template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templater.