QOwnNotes
QOwnNotes copied to clipboard
Frontmatter support for Evernote import
Imported notes from .enex have attributes (Creates date, Updated date and Source) showed in table format. But there were not these attributes in body of my original notes, they were hide somewhere in xml. Now it just a text without updating when note changed. And now, what should I do with this table? Just delete. So it does not matter in main body to see it every time. But we can compromise and hide attributes simply in comments (like Notable do).
Expected behaviour
---
title: QOwnNotes
tags: [Import-26c6]
created: '2018-01-20T19:54:06.000Z'
modified: '2019-11-12T05:50:17.656Z'
author: Bill Gates
...
---
QOwnNotes
=========
blah blah
Actual behaviour
QOwnNotes
=========
| Attribute | Value |
|---|---|
| Created date | 20151227T042816Z |
| Updated date | 20151228T052432Z |
| Author | Bill Gates |
blah blah
Steps to reproduce
Import any .enex and you will see.
QOwnNotes doesn't use any frontmatter because Nextcloud notes relies for the first list in the note as filename for the note. I implemented general frontmatter support as in "it doesn't destroy notes or looks ugly in the note edit or preview".
Of course it could be implemented as option in the Evernote import.
Does Nextcloud not ignore frontmatter?
Ok, I switched off attributes not to import them. Not sure whether this task is still actual if we can't get rid of title on the top because of Nextcloud.
Does Nextcloud not ignore frontmatter?
https://github.com/nextcloud/notes currently does not If you want to use Nextcloud Notes don't use a frontmatter :smile: