[FR] Add the title
key automatically (if the file don't have it) for "folder note" file.
#242
Labels
✨ Enhancement
New feature or request
Discussed in https://github.com/orgs/ObsidianPublisher/discussions/241
Originally posted by @ooker777 November 8, 2023
if I have
a/a.md
and set the folder note config to rename it to index.md, is it possible to automatically addtitle: a
to yaml metadata?Originally posted by @Lisandra-dev November 8, 2023
The problem to add an option to edit the frontmatter in the "server file" is that I need to completely parse the frontmatter (as it is done in the GitHub deleting) manually, add the key and rewrite the frontmatter.
I don't know if I can use the new frontmatter API without editing the "obsidian file" and broke every parsing.
For the moment, keep the file content with reading the cache and use the strings. If I need to edit the frontmatter, it musts be done in first and I dunno.
I think it's possible but I need to ask and test before.
TBH it can be a good option, so I will finish with my actual work (my little chat GPT bot) and keep an idea on it.
The text was updated successfully, but these errors were encountered: