Bear-Typora

An Alfred Workflow


Short Description

Edit Bear notes in Typora

Last Updated

02 Feb 2019

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

0.0.1
 

Bundle ID

com.alfredapp.beartypora
 

Author

Applications

Edit Bear notes in Typora. This becomes useful if notes contain math expressions, which are currently not rendered in Bear. 

@markgrovs wrote a Bear-Markdown-Export script [1], exporting notes from the Bear database to Markdown. It allows to synchronise edited notes back into the Bear database. 

When triggered, this workflow does the following:

  1. Call the export/sync script.
  2. Select the ID of the currently active note in Bear.
  3. Search through the exported markdown notes to find the matching note.
  4. Open the note in Typora.
  5. Change Typora to fullscreen mode.
  6. Watch out for Typora being closed: once that happens, the export/sync script is triggered again so that the changes are reflected in Bear.

The workflow uses a combination of Python and AppleScript to get this done. It's hacked together quickly. Feel free to fork and improve.

To use this workflow, set up Bear-Markdown-Export [1], install Typora, and edit the environment variables of the workflow.

[1]: https://github.com/markgrovs/Bear-Markdown-Export