Templates In Bear

I just tried this and it did not work. Table remains as unrendered MD.

Do you mind sending the markdown code in a file for the note in the screenshot here? I want to investigate whatā€™s not working here syntax-wise

Sure what would be the best way to do that?

actually, my coworker noticed something odd in the table screenshot, there are odd characters in the tableā€™s headers separator.

Screenshot 2023-08-21 at 13.28.30

Considering this is coming from the pasteboard, please try to turn off ā€œSmart Punctuationā€ in iOS preferences General > Keyboard.

1 Like

Incredible work! That has solved it on iOS :sunglasses:

Is there anything I can add into this that would paste the current date into the template or is that more hassle than its worth?

Same for me ā€¦ so double thanks :grinning:

1 Like

I am not able to find a way to get that text replacement to be limited to just the Bear application. Am I missing something?

Yes, I came to the forum today because I was really feeling the need for having templates so that I could prepare 5 or 10 templates and then have the option right after creating a new note and before adding any content to select from one of my templates as a starting point.

An implementation of this could be as simple as letting a user specify a tag for templates in Preferences and then when a user creates a new note you add a toolbar button that is removed as soon as they start typing.

OTOH if they click the button before typing Bear would drop down a list of the notes tagged with the template tag and if they select one of the templates the new note is replaced with a duplicate of the template they selected.


As another option to consider to for Bear would to integrate a menu of Apple Shortcuts into an optional toolbar button on Bear to list the related Shortcuts and then run them when the user selects them. That would integrate Shortcut functionality into the flow of Bear and not disrupt the inertia of working inside Bear as the OP requested.

BTW, I am a professional programmer and use ChatGPT to help with coding many times a day so I asked ChatGPT if what I just proposed was possible and if so how, and according to ChatGPT it appears to be almost trivial to implement.

See ChatGPTā€™s response here.

That is correct. Itā€™s an OS function, not Bear. However, I just use a prefix of ā€œ@b.ā€, then name of my templateā€¦ daily, meeting, etc. For example, ā€œ@b.dailyā€ loads my daily journal template. Easy enough, and I canā€™t think of how that would get in the way of any other app I use.

And by applying it to macOS, it carries over into iOS.

Here is a new (updated) shortcut to use and expand templates.
Runs on Mac, iPad and iPhone.

Bear Templates - Apple Shortcuts

All templates are written and stored in Bear as regular notes with tag: #.template, and this shortcut ask you to choose one, and {{keys}} in use will get expanded (filled in).

3 Likes

Thank you!!! Much appreciated!