Comments (7)
@FeralFlora And of course, now I can reproduce using the template from this issue #1372 . The folder template is triggered during the first prompt, before the file has any content.
<%*
let qcFileName = tp.file.title;
if (qcFileName.startsWith("Untitled")) {
qcFileName = await tp.system.prompt("Note Title");
}
// more logic...
-%>
from templater.
Attempted a fix in 2.3.1, can I get someone to verify if the fix worked or not?
After updating Templater, and restarting Obsidian, everything now works as expected for me, and I cannot reproduce the bug anymore. So it certainly seems like your fix worked 💪
from templater.
Attempted a fix in 2.3.1, can I get someone to verify if the fix worked or not?
Fixed for me too, thanks for the fast response!
from templater.
I'm not able to reproduce this issue. Here is a video of me trying to reproduce. Are there any other details you can provide?
2024-05-07_21-29-39.mp4
from templater.
I can reproduce it, with the finding that it only occurs when I create notes using some particular templates.
When I tested it, I was creating notes in my person folder, to see if the person template would get applied.
When I right click the folder, choose "Create new note from template", and then choose the concept template, only the concept template is applied. But when I choose the base template, only the person template is applied. This happened consistently.
I think it has to do with the fact that the base template only adds frontmatter using processFrontmatter
, in my mergeFrontmatter
userscript. The concept template also adds frontmatter using this script, but it has actual content as well. If I add content to the base template, it does not get overridden by the folder template anymore.
These templates are fairly large and have user script dependencies, but I can share it all if you want, @Zachatoo.
Demos
Folder template overrides chosen base template
Folder template does not override chosen concept template
from templater.
@FeralFlora I believe I've followed your scenario and I can't reproduce. I would appreciate if you would send me what you're working with so I can at least verify if I can reproduce on my end so I can verify when I fix it. Send it to me wherever is most convenient to you, I've got GitHub, Discord, and email all open.
from templater.
Attempted a fix in 2.3.1, can I get someone to verify if the fix worked or not?
from templater.
Related Issues (20)
- Raw encoded file is causing lag with syntax highlighting enabled HOT 4
- Too small input area for folders path in New Folder template
- Incorrect Placement of Examples for tp.file.content in Documentation @ silentvoid13.github.io HOT 2
- tp.date.weekday offset by one day. Perhaps due to leap year? HOT 2
- Incorrect date calculation HOT 1
- Plugin fails to load on Android HOT 1
- Syntax Highlighting feature breaks the default Obsidian code embed, if the embedded code includes '<%' HOT 1
- Request for adding Chinese language support to Templater templates HOT 1
- [Feature request] Automatic templates ignore files setting
- Folder template (checkbox - include subfolders)
- Create new file from template HOT 2
- tp.date.now returns incorrect time. HOT 2
- Add native AI support HOT 2
- Add `<%*` tag to documentation HOT 1
- Templater script inserting newline before front matter HOT 3
- Don't Include Frontmatter in Output HOT 2
- Expand metadata in space - Geolocation coords support request HOT 3
- Console error: app.js:1 No file creator assigned to create file with extension com. Falling back to markdown file creator. HOT 1
- Error: Failed to List Templates, No Template Folder Configured HOT 8
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.