Skip to content

Latest commit

 

History

History
62 lines (37 loc) · 1.67 KB

README.md

File metadata and controls

62 lines (37 loc) · 1.67 KB

ObsidianBear

Are you ready to migrate from Bear to Obsidian? Let's go!

This tool will:

  1. Parse Bear tags, create folders for each tag name and move notes to the appropriate folders
  2. Adjust attachments from Bear to Obsidian format

Tags with a forward slash will create subfolders, for example:

#programming/ruby will create the programming folder and a ruby folder inside it.

Spaces within tags will be converted to underscore, for example:

#programming ruby# will create a folder named programming_ruby

Prerequisites

We need to have the following installed:

  1. git
  2. Ruby
  3. bundler

Followed by these commands in your terminal:

  1. git clone https://github.com/bernardoamc/obsidian_bear.git
  2. Go to this new folder: cd obsidian_bear

Export your Bear notes

  1. Export from Bear as Markdown + Attachments to a folder
  2. Backup your notes, seriously.
  3. Copy the full path of your notes folder

You can get the full path by running the following command in your notes folder:

$ pwd

Running the tool

bundle exec rake migrate <notes_path>

Enjoy Obsidian!

Caveats

  1. When a note has multiple tags the note will be duplicated into folders for each tag.
  2. Since new folders and files are created the file metadata is not kept (creation date, updated at, etc..)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/bernardoamc/obsidian_bear.

License

The gem is available as open source under the terms of the MIT License.