Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.19k stars 801 forks source link

Bash markdown import script #901

Open gsautr opened 6 years ago

gsautr commented 6 years ago

Hello, I want to switch to Laverna but cannot without first importing my old notes. I had some success exporting a backup and editing the title / date / md of different notes, then re-zipping and importing it back in - so decided to try my hand writing a bash script.

It can be found here;

https://github.com/autr/laverna-markdown-import

At the moment it copies across markdown files from the sources/ folder, preserving modified date, and adding an accompanying JSON config with date in 13-char UNIX timestamp, and identical id to filename - then rezips the folder for import.

No luck with this script though.

I was able to re-import existing notes with a changed id and filename, and also with a new UNIX timestamp. Any pointers how to get this working?

gsautr commented 6 years ago

See now that notes synchronise with Dropbox from the IndexedDB localstorage...