Open github2099 opened 1 week ago
I might have a workaround.
new: Export to JSON (Mini Diary) Run the python script python2.py.txt Either manually copy the content to journal or jrnl < output.txt
@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?
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:
sample text
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