When I switch the ‘Preferred File Format’ to something different on an existing collection (perhaps on a new one too), it changes the - INFO.nnk and template.md, but not existing notes.
Then when opening the collection preferences again, the preferred file format selection has been reverted, and when the collection preferences is closed - INFO.nnk has reverted to the previous file format.
I’m not quite sure what you’re expecting to see happen.
A couple of points might be causing confusion.
The template file for a Collection should always be kept in Notenik’s own format, no matter what the preferred file format is for the Collection.
YAML and MultiMarkdown formats are similar in most ways. So if you’re converting from MMD to YAML, you may not see any difference in the formatting of the files on disk. The YAML syntactical differences primarily arise for fields with multiple values, since YAML formats these differently.
In most cases, Notenik will try to deduce a particular Note’s format from the actual file contents. Multiple formats can usually be combined in a collection with no ill effects.
It does appear, though, that Notenik might be reverting your preferred file format from YAML to MMD. Let me look into this and see what I can find.
And if you’re seeing other problems, please don’t wait to report those. They are likely independent issues.
Also, this latest beta (15.2.4) should also fix a problem I was having when Notes had their key fields changed – most typically, by changing the Note’s title. That was causing some strange behavior for me. Hopefully this is now fixed.
In most cases, Notenik will try to deduce a particular Note’s format from the actual file contents. Multiple formats can usually be combined in a collection with no ill effects.
Ah, perhaps this is it, and it doesn’t matter if it is stating MMD instead of YAML.
I’ve downloaded the beta still have the same issue. Here’s a video that should be better than my written explanations:
I create a new collection using the Outline collection
Immediately change the preferred file format to YAML.
- INFO.nnk states YAML
Open existing note in external editor, front matter looks to be YAML or MMD (something to remember later)
Create new note in Notenik, open in external editor, front matter looks to be formatted as Notenik (space between each item)
Open collection preferences, preferred file format is now Notenik, switch to YAML again.
Create new note in Notenik, open in external editor, front matter looks to be formatted as Notenik (space between each item, no initial and last line of hypens)
Create new note in Notenik, but this time add some tags. Open in external editor, front matter is now YAML.
So unless I immediately create a note where some of the front matter features formatting distinct to the particular format (or maybe just YAML) then note is created in the initial Notenik format.
Oops, forgot about the something to remember later on part above. The former issue about reverting to MMD instead YAML, from what I can tell, is because, as you have pointed out, those two formats are so similar until something is added that is different, e.g. tags.
Great! Not tested extensively yet, but file format is sticking in the preferences now.
I have encountered an issue. If I create a brand new collection (Outline for this example), and edit the first note The Top Container for your Outline and add three tags.
Opening this file in external editor, the tags have been added in Multimarkdown format.
---
Title: The Top Container for your Outline
Tags: tag1, tag2, tag3
Level: 1
---
If I change the preferred file format to MultiMarkDown and then back to YAML the file is changed to the correct formatting:
---
Title: The Top Container for your Outline
Tags:
- tag1
- tag2
- tag3
Level: 1
---