Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Add the title key automatically (if the file don't have it) for "folder note" file. #242

Closed
Mara-Li opened this issue Nov 8, 2023 Discussed in #241 · 2 comments
Closed
Assignees
Labels
✨ Enhancement New feature or request

Comments

@Mara-Li
Copy link
Member

Mara-Li commented Nov 8, 2023

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 add title: 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.

@Mara-Li Mara-Li self-assigned this Nov 8, 2023
@Mara-Li Mara-Li added the ✨ Enhancement New feature or request label Nov 8, 2023
@Mara-Li Mara-Li closed this as completed in 66c150e Nov 9, 2023
@Mara-Li
Copy link
Member Author

Mara-Li commented Nov 9, 2023

I added the functionallity in beta, if you could try it (with some other fix)

@Mara-Li Mara-Li reopened this Nov 9, 2023
@Mara-Li
Copy link
Member Author

Mara-Li commented Nov 9, 2023

(forgot to ping you @ooker777 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant