Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Import from Mini Diary #1953

Open
github2099 opened this issue Nov 16, 2024 · 5 comments
Open

Feature: Import from Mini Diary #1953

github2099 opened this issue Nov 16, 2024 · 5 comments
Labels
enhancement New feature or request 📌 This can't go stale

Comments

@github2099
Copy link

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 github2099 added 🆕 New! enhancement New feature or request labels Nov 16, 2024
@github2099
Copy link
Author

github2099 commented Nov 17, 2024

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
Copy link
Author

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 wren added 📌 This can't go stale and removed 🆕 New! labels Nov 26, 2024
@wren
Copy link
Member

wren commented Nov 26, 2024

@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?

@github2099
Copy link
Author

@wren

Pull request creation failed. Validation failed: must be a collaborator

@github2099
Copy link
Author

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📌 This can't go stale
Projects
None yet
Development

No branches or pull requests

2 participants