Bold [[time]] and send to Bear

This article is a good place to start to understand how the tags and templates work to configure actions:

I would note that this gets a lot easier with URLs if you use the “Define Template Tag” action step, because you can setup the text you want to send without having to worry about the URL encoding.

For the example above, you could add a Define Template Tag step, with the tag name set to “mytext” above the “Open URL” step, and enter the information like this:

*[[time]]*: [[draft]]

Then, use the URL:

bear://x-callback-url/add-text?title=Journal-[[date|%Y-%m]]&text=[[mytext]]&mode=append

Drafts will take care of doing the encoding for the URL and replace the [[mytest]] in the URL with the results of the template step above.

1 Like