jrnl-org / jrnl

Collect your thoughts and notes without leaving the command line.
https://jrnl.sh
GNU General Public License v3.0
6.52k stars 528 forks source link

Feature: Import from Mini Diary #1953

Open github2099 opened 1 week ago

github2099 commented 1 week ago

Use Case/Motivation

i am planning to move from Mini Diary: below are the typical format, exported from Mini Diary

JSON:

{ "metadata": { "application": "Mini Diary", "version": "3.3.0", "dateUpdated": "Sat Nov 16 2024 07:04:48 GMT+0000" }, "entries": { "2024-10-01": { "dateUpdated": "Sat Nov 16 2024 07:01:49 GMT+0000", "title": "", "text": "sample text" }, "2024-10-02": { "dateUpdated": "Sat Nov 16 2024 07:02:31 GMT+0000", "title": "", "text": "i love this weather" } } }

plain text:

Date:   01 October 2024 at 00:00:00 GMT

sample text

Date:   02 October 2024 at 00:00:00 GMT

i love this weather

Example Usage

jrnl --import --format mini-diary-json

jrnl --import --format mini-diary-txt

Other Information

https://github.com/samuelmeuli/mini-diary

github2099 commented 1 week ago

I might have a workaround.

  1. Export from Mini Diary to TXT (plain text)
  2. Run the python script python.py.txt
  3. Either manually copy the content to journal or jrnl < output
github2099 commented 6 days ago

new: Export to JSON (Mini Diary) Run the python script python2.py.txt Either manually copy the content to journal or jrnl < output.txt

wren commented 3 days ago

@github2099 It looks like you've written importers for these formats that are already pretty close to complete. Have you considered sending us a PR with these importers to put them into jrnl?