Giter Club home page Giter Club logo

Comments (7)

Zachatoo avatar Zachatoo commented on June 20, 2024 1

@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.

FeralFlora avatar FeralFlora commented on June 20, 2024 1

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.

revennui avatar revennui commented on June 20, 2024 1

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.

Zachatoo avatar Zachatoo commented on June 20, 2024

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.

FeralFlora avatar FeralFlora commented on June 20, 2024

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

Obsidian_8vrXbouDlL

Folder template does not override chosen concept template

Obsidian_8RYAfnL2Xj

from templater.

Zachatoo avatar Zachatoo commented on June 20, 2024

@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.

Zachatoo avatar Zachatoo commented on June 20, 2024

Attempted a fix in 2.3.1, can I get someone to verify if the fix worked or not?

from templater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.