Giter Site home page Giter Site logo

Comments (11)

SilentVoid13 avatar SilentVoid13 commented on August 14, 2024 1

Hey @meskill, Templater was completely revamped. It now has a new syntax, you'll need to update your existing templates.
This update should fix a lot of things, Templater should now be compatible with the Review plugin for example.
Try to update and tell me if this fixes any of the problems you mentioned.

from templater.

meskill avatar meskill commented on August 14, 2024 1

@SilentVoid13 yes, last version works great with review and calendar plugins

Great work, Thank You!

from templater.

AngelusDomini avatar AngelusDomini commented on August 14, 2024 1

Yes, it works now! Though, if I may complain just a little more, Cmd+clicking on a daily note on Calendar plugin, though it opens it as a new pane (with the right template now), it doesn't switch to it as the active pane. That said, I don't think this is Templater's fault lelz

Anyway, thank you so much for everything @SilentVoid13! Really appreciate it 😁

EDIT: Also glad that the plugin is working well with Review now!

from templater.

SilentVoid13 avatar SilentVoid13 commented on August 14, 2024

Hello @AngelusDomini,
For the Daily notes and Calendar plugin, this should work. The title_f argument should be the same as the one specified in the Daily Notes core plugin settings. Are all your daily notes files in the format YYYY-MM-DD, ddd ?
The Review plugin isn't compatible with Templater {{tp_title_<...>}} templates because Templater tries to retrieve the active file title date but the Review plugin doesn't switch to the newly created file so Templater ends up retrieving a random file title.

from templater.

AngelusDomini avatar AngelusDomini commented on August 14, 2024

Are all your daily notes files in the format YYYY-MM-DD, ddd ?

Yes, they are.

The Review plugin isn't compatible with Templater {{tp_title_<...>}} templates because Templater tries to retrieve the active file title date but the Review plugin doesn't switch to the newly created file so Templater ends up retrieving a random file title.

Ah I see. That's a bummer but at least I know now lol.

Did I actually get the format of the template right? I mean it definitely works when I manually add the template, just not with the Calendar plugin for some reason.

from templater.

SilentVoid13 avatar SilentVoid13 commented on August 14, 2024

That's really weird, just tested it with a fresh new test vault and this is working perfectly. Try disabling / re-enabling the plugin or maybe uninstall / reinstall. Your format is correct, is it not working on both daily note and calendar ?

test_demo.mp4

from templater.

luckman212 avatar luckman212 commented on August 14, 2024

I had a problem too with the last update, a few of the title templates were not working, and reloading didn't work. I was about to file a bug but I tried fully quitting and restarting Obsidian and that got everything working again.

from templater.

AngelusDomini avatar AngelusDomini commented on August 14, 2024

Sorry for the very late reply.

I was supposed to reply saying that the problem persisted, and it certainly did… except when I don't hold the Cmd button to create the daily note in the Calendar plugin.

This whole time I have been holding the Cmd button in order to open the newly created daily note on another pane. If it turned out the whole time that Cmd + clicking the Calendar plugin did something more than open the daily note on another pane, then I apologize for wasting your time πŸ™. But I think it's still a bug from either Templater or Calendar. As I've said, the problem still persists when I Cmd+click to create a daily note, but not when I'm just opening from the currently active pane.

I tried reinstalling the plugin and I've pretty much quit Obsidian and shut down my laptop a couple of times these past days. To explain the bug in further detail, it's rather unpredictable. Depending on the day that I decide to create from the Calendar plugin, it will either show the error or input the wrong date. Future daily notes input tomorrow's date (sometimes today's date). I deleted and recreated today's daily note to test, and this time it showed the correct date (perhaps because I didn't open it on another pane). But I created a past date (I created the daily note for Jan 1 which I didn't have)β€”again using the Calendar plugin, which showed today's date.

As you've said, it's really weird. But at the very least, it works when I'm not opening in another pane. Is this the case for you also? Any other info I can give that might help?

from templater.

meskill avatar meskill commented on August 14, 2024

extending @AngelusDomini observations.
when using Calendar plugin and a internal_template based on title, these steps will lead to Internal_Template_Error in newly created files:

  • clicking on date without daily note with Cmd\Ctrl button to open newly created note in new pane
  • having pinned pane and just clicking on date without daily

As Review plugin doesn't work well with templater also question is - is this problem more with other plugins like Calendar, Review and how it can be fixed

maybe plugins which creates new notes should be focusing newly created note or smth

from templater.

SilentVoid13 avatar SilentVoid13 commented on August 14, 2024

Hey @AngelusDomini, sorry for the very late reply.
As explained in my previous message, Templater had a huge update.
This should fix a lot of things, could you update to Templater's latest version, update your existing templates with the new syntax and tell me if the bug still persists ?
Tell me if something goes wrong.

from templater.

SilentVoid13 avatar SilentVoid13 commented on August 14, 2024

@AngelusDomini Glad to hear it's working now!

You're right, the active pane issue is not a Templater thing, maybe you can open a feature request on Calendar's github page to be able to do this.

Closing this.

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.