Jump to content

Recommended Posts

Alfred Bear Templates Workflow

Workflow to create a bear note from a given template. These templates follow bear snippet syntax and can contain default alfred variables (e.g. {datetime}).

The Templates live in the bearTemplateDirectory which is by default '~/.bear-templates' but can be changed by giving another path starting at the users home directory.

Usage

By default just type bt and then start to type. The Workflow suggests all template names it found in the bearTemplateDirectory. To get the snippet variables translated it pushes the template text to the clipboard. So after using the workflow the template is in Bear and also in your clipboard.

Alfred Workflow.png

Download

You can download the workflow from Packal

Edited by jmeischner
Added download link

Share this post


Link to post

Very nice workflow. However, I don't get it working.

I've created the directory ~/.bear-templates and added a file called "Weekly Review" with simple contents: "Hello World"

 

When I hit Alfred with "bt" and start typing w, it doesn't show my Weekly Review file. 

Could you please let me know what I'm doing wrong?

 

Does the file need to be formatted? It seems it shows the whole directory listing of my home folder.

In case I need to set os variables. My shell is zsh. 

 

Thanks in advance,

 

Robin

Share this post


Link to post
On 9/3/2019 at 7:43 AM, jmeischner said:

The Templates live in the bearTemplateDirectory which is by default '~/.bear-templates'

 

The default is actually ~ because you set bearTemplateDirectory to "Don't export", which means it's empty…

 

@RobinB You need to go into the workflow's settings (the weird [𝑥] icon) and set bearTemplateDirectory to .bear-templates

Edited by deanishe

Share this post


Link to post
On 10/10/2019 at 7:30 PM, deanishe said:

 

The default is actually ~ because you set bearTemplateDirectory to "Don't export", which means it's empty…

 

@RobinB You need to go into the workflow's settings (the weird [𝑥] icon) and set bearTemplateDirectory to .bear-templates

 

Thank you deanishe. I will reexport and upload the workflow and hopefully export the bearTemplateDirectory this time 😓

 

Sorry for the inconvenience,

Jan

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...