Comments (11)
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.
@SilentVoid13 yes, last version works great with review and calendar plugins
Great work, Thank You!
from templater.
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.
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.
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.
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.
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.
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.
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.
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.
@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)
- invalid reference date format, try specifying one with reference format HOT 4
- bug: app.workspace.getLeaf().openFile() replaces content in a note if called without "await"
- app.fileManager.processFrontMatter doesn't work HOT 1
- Templater should parse, merge and write out frontmatter gracefully HOT 6
- Applying Text Color in Obsidian Without Unwanted New Lines HOT 2
- Templater no longer works with console error "Plugin failure: templater-obsidian TypeError: c is not a constructor" HOT 2
- The recent upgrade of this plug-in has broken "Trigger Templater on new file creation" HOT 6
- {{date}} fail to work after updating to 2.3.3 HOT 1
- Target file gets overwritten by processFrontMatter() HOT 1
- Note Creation with Core Plugin "Note Composer" Breaks Templater HOT 1
- Option to add ignored files to Templater settings HOT 2
- Copy existing file with templater HOT 1
- Ability to use {{date}} in Folder Templates HOT 2
- Templater file module does not support the concurrent creation of files HOT 4
- Folder Template overwrites non-empty note HOT 2
- Daily Quote errors HOT 7
- Template folder location should allow subfolders HOT 2
- Obsidian version 1.6.5 installs template. When creating a template, it will prompt that the relevant plug-in is not found. HOT 1
- Support for Folder Templates specific to subfolders
- [Feature Request] Mobile | tp.system.prompt with MULTILINE - Using a Keyboard Hotkey to SUBMIT
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.