This is surprising because it is a classic request for templates IMHO.
You could be right, and now that the template functionality is split out into a plugin it will be easier to add. Let's keep our fingers crossed.
Makes sense. Again a question for @CalebJohn, is it possible for plugins to place the cursor at a specific place in the note?
Yes it can be done using the Joplin command editor.execCommand
and the CodeMirror command setCursor
.
Release v2.1.2
Bug Fixes
For reporting bugs/feature-requests or to know more about the plugin visit the GitHub Repo.
Release v2.2.0
Features
For reporting bugs/feature-requests or to know more about the plugin visit the GitHub Repo.
This feature is finally released in v2.2.0
of the plugin. As 60% of the votes are in favor of giving users an option on this feature and 40% of them are in favor of enabling this, therefore, I've given the option to toggle this to users in the settings and it is enabled by default. Thanks!
PS: I'll be working on the other feature requests as well.
That's great. Thanks @nishantwrp
Hi everyone,
Just wanted to let you know that nowadays I'm unable to take out time to think & implement new feature requests to this plugin . However, I recently worked on adding some unit tests to this plugin because I think they're very important and were long due.
So, If anyone wants to work on these feature requests or any other thing on this plugin please feel free to do so. I'll be more than happy to assist you and review your pull request.
I just looked on this issue i.e. the ability to use {{ }}
as normal text in the plugin. I think will be easier to implement if we define a built-in for this. I'm thinking of
{{ open_brackets }}
= {{
{{ close_brackets }}
= }}
Does anyone have a better naming convention for this?
What about \{\{
or \{{
. Usually escaping is done with backslashes.
Actually, that was my initial thought too. But looks like handlebars has no support for escaping curly braces. And having helpers
seem to be the only way to achieve that.
Related Links - handlebars.js - Escaping curly brackets standing next to expression in handlebars - Stack Overflow
Hi,
Is there a way to insert a relative date in a template?
For example, if today is 2022-01-28, I’d like to insert 20220129 for tomorrow or 20220204 for 7 days later.
I tried with {{#custom_datetime}}{{/custom_datetime}}
and looking at moments.je docs but I couldn’t find a way that works.
I also failed to create a handlebars helper to generate the new date.
Does anyone have an idea how to do this?
Thank you.
Hi, Guillaume at the moment it's not possible to insert relative dates using the plugin.
So, I think math with dates isn't possible either at the moment? Something like currentDate + 1.
I would also be interested in something like this. E.g. rounding up/down to the nearest quarter/half/full hour could be helpful for meeting notes.
Hi Nishant,
Thank you for your answer.
It would be nice to have some examples/depository of useful templates. For example, I use my own verbatim date/time for which the "insert template" function is really useful.
FYI, I have a template that asks for a bunch of inputs and the box that appears doesn't scroll, so some of the questions are cut off. As a work around, I can zoom out (make the entire interface much smaller) to see them. From a CSS standpoint, I'd probably make the question box max-height:80vh, then have an inner box that can scroll if needed.
Even with this issue, I love this plugin and use it every day, thanks for making it!
Hi @uxamanda, can you give me the template to reproduce this error or share screenshots?