Coder Social home page Coder Social logo

dayone-to-obsidian's Introduction

Day One to Obsidian Converter

Build Status codecov PyPI - Version PyPI - Python Version

Convert your Day One journal entries into Markdown files compatible with Obsidian.

Features

  • Complete Data Migration: Transfers all text, images, and metadata (including creation dates) from Day One entries.
  • Markdown Formatting: Converts Day One entries into Markdown format, making them compatible with Obsidian and other Markdown editors.
  • Tag Support: Migrates all tags from Day One, allowing for easy categorization and search within Obsidian.
  • Image Embedding: Automatically transfers and embeds any images from Day One entries into the Markdown files.

Prerequisites

Before using dayone-to-obsidian, ensure you have the following:

  • Python 3.10 or higher installed on your machine.
  • Your Day One journal exported in JSON format.
  • Obsidian installed if you wish to immediately start using your migrated files in Obsidian.

Installation

pip install dayone-to-obsidian

Usage

Follow these steps for conversion:

  1. Prepare Your Day One Export: Export your Day One journal entries to a JSON file or directory containing multiple JSON files following the manual.

  2. Run the Conversion: Open a terminal or command prompt and execute the CLI with the appropriate options. The command structure is as follows:

    dayone-to-obsidian run --json /path/to/your/dayone_export.json --target /path/to/target_directory [--force] [--tag-prefix=prefix] [--tag=tag1] [--tag=tag2]
    • --json: Path to your Day One export JSON file or directory. If not specified, it defaults to the current directory.
    • --target: Path to the directory where converted Markdown files will be saved. By default, a new folder is created in the current directory.
    • --force: Force the overwriting of existing journal folder.
    • --tag-prefix: Prefix for tags, allowing customization of how tags are formatted in the converted files.
    • --tag: Additional tag(s) to add to all entries. This option can be repeated to include multiple tags.
    • --help: Display the help message.

    Example command:

    dayone-to-obsidian run --json ./DayOneExport/Journal.json --target ./ObsidianNotes --tag-prefix=DayOne/ --tag=Imported --tag=Journal

    This command specifies a Day One JSON export file, sets the target directory for the converted Markdown files, adds a prefix to all tags, and includes additional tags for each entry.

  3. Import to Obsidian: Once the conversion process is complete, manually move the generated Markdown files to your Obsidian vault directory.

Support

If you encounter any issues or have suggestions for improvements, please open an issue in this GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.