Importing markdown file from command line

@foxmask, currently the title is simply the filename without the extension, and the note content is the full content of the file.

If you need more control, you either need to use the set command as you’re already doing, or import in the “raw” format. Raw format is simply the format used for synchronisation so it can have all the supported properties (but it might be more complicated to create).

Here’s an example note in “raw” format:

The note title

The note body - it can span multiple lines

And have multiple paragraphs

Then additional metadata can be added after a two line breaks:

id: 1e23028857cb46c082ce6628d4053854
parent_id: 8f4b9330b96240f28ef918c263074dfe
created_time: 2017-12-07T21:24:05.509Z
updated_time: 2017-12-07T21:24:05.624Z
is_conflict: 0
latitude: 48.73219094
longitude: -3.45966339
altitude: 0.0000
author: 
source_url: 
is_todo: 1
todo_due: 0
todo_completed: 0
source: joplin
source_application: net.cozic.joplin
application_data: 
order: 0
user_created_time: 2017-12-07T21:24:05.509Z
user_updated_time: 2017-12-07T21:24:05.624Z
encryption_cipher_text: 
encryption_applied: 0
type_: 1