I know I could import the files as txt, but I would also need to import the creation and modification dates of the notes... so the Json format (with which I exported the notes from Drafts) would be perfect.
The format isn't too complex, so it was possible to implement support for drafts in jimmy release v0.0.52. Here are the basic instructions:
The idea is to convert Drafts to Markdown + Front Matter and import this to Joplin.
One of the example files looks in Markdown + Front Matter like:
---
created: '2025-03-24T19:55:15+00:00'
tags:
- cif
title: 2025-03-24 19:55
updated: '2025-03-24T20:00:04+00:00'
---
This is a test note 1 from Drafts for Mac Version 47.1. Thanks a lot for your efforts :)
Imported notes has been created without the same timestamp, so import time-date has been wroten as the note time-date.
Tags has not been created nor imported
This might be due to missing front matter. Could you check if you:
Converted the notes with front matter, by appending --frontmatter joplin to the jimmy command.
Imported with front matter, by using File -> Import -> MD - Markdown + Front Matter (Directory) in Joplin.
If the issue still occurs, I can check if there was a regression in the front matter format.
Title notes should be different than date-time. Eg. system can take first row of text inside note.
I didn't take the first row on purpose, because very long filenames could be created that can yield further issues. I could use the first row with a length limit of 80 characters if this is better suited, though.
Notes has been imported without HTML inside or other code, only pure text
This is because the example export file doesn't contain HTML/code. I can try to add it if you can provide a corresponding example file.
About note title, it could be intereseting to limit to 80 characters, sanitizing eventually from charachters that can be not compatible with title format.