Skip to content

paulhammond/bearbag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bearbag

bearbag exports markdown files from Bear. I use it to copy my notes into a git repository, giving me backups and version history. Unlike other solutions listed below the sync is strictly one way; bearbag does not modify notes or write to the Bear database.

Installing

Using Homebrew:

brew install paulhammond/tap/bearbag

Using

Export your bear notes to path/to/directory:

bearbag path/to/directory

Get help:

bearbag --help

Alternatives

  • Bear-Markdown-Export: This has a lot more options and functionality, including two way sync, exporting images & textbundles, and others. The two way sync scares me (which is why I don't use it) but if you're OK with that it enables some interesting use cases, such as the neat Backlink Janitor
  • bearc: This requires you to pick which tags are exported.

Other Bear CLI tools

  • bearing: a scripting helper for Bear
  • cub: command-line utility for Bear

License

bearbag is released under the MIT License

I'm sharing this code publicly to make it easier for me to install when I get a new computer, and in the hope it is useful to others. I would love to hear about interesting things you do with it, but I do not commit to maintain or support the code in any way. Sorry in advance.