Sync notes from Bear to a local directory
Project description
Bear Sync
This is a small python package to sync notes from Bear to a local directory as markdown files.
Installation
via pip:
pip install git+https://github.com/chemron/sync-bear-notes.git
Usage
bear-sync [options] <directory>
Where <directory> should be the directory that the notes should be written to.
Options:
--db-dir TEXT: Path to Bear's database directory. Defaults to ~/Library/Group Containers/9K33E3U3T4.net.shinyfrog.bear/Application Data/database.sqlite
--overwrite: Overwrite existing markdown files with the same name.
--remove-existing: Remove existing markdown files before syncing. WARNING: This will delete all markdown files in output-dir.
Behaviour
This package attempts to mimic the behaviour of bear with a directory structure. At the moment, this results some duplication of files. If you have a document in bear like follows:
# My Bear Document
#tag/subtag #tag2
This is my bear document.
then the resulting directory structure will be:
bear_sync_folder/
├── tag/
| ├── My Bear Document.md
│ ├── subtag/
│ │ ├── My Bear Document.md
├── tag2/
| ├── My Bear Document.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bear_sync-0.0.1.tar.gz.
File metadata
- Download URL: bear_sync-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c3641bf995d5b3bd2aeffa17e1a8d9dfc0e8cb4a4110f5017ef22d7c4f42cb8
|
|
| MD5 |
28744755157152ad458207c76209ac76
|
|
| BLAKE2b-256 |
eb1b0ccc271afb88371208ba858c71804f289637012ab1ac9c224fa960e14114
|
File details
Details for the file bear_sync-0.0.1-py3-none-any.whl.
File metadata
- Download URL: bear_sync-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d11dc87cc3aa7e7ce60dfd6587462615c1ec49136447d8bb183e84b93570891d
|
|
| MD5 |
1f68548ea2c244887066c1ebd7a1c8be
|
|
| BLAKE2b-256 |
ef551b8f0505f7b134afb13dd730880479eb2ee30df3489302d18e9e4736a02e
|