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

Enhancement: Add property to disable auto append frontmatter #836

Open
morisono opened this issue Aug 6, 2024 · 1 comment
Open

Enhancement: Add property to disable auto append frontmatter #836

morisono opened this issue Aug 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@morisono
Copy link

morisono commented Aug 6, 2024

It would be beneficial to have an option that allows users to disable of whole frontmatter when using the extension. This feature conflicts default snippet insertion, such as auto-snippet.

This extension may still not have a features to add uuid, random_hex, that builtin variables generate. I needs these value to auto generate. So I use this extension only for management contents
for now.

thanks for helpful extension.

@morisono morisono added the enhancement New feature or request label Aug 6, 2024
@morisono morisono changed the title Enhancement: Enhancement: Add propert to disable auto append frontmatter Aug 6, 2024
@morisono morisono changed the title Enhancement: Add propert to disable auto append frontmatter Enhancement: Add property to disable auto append frontmatter Aug 6, 2024
@estruyf
Copy link
Owner

estruyf commented Aug 6, 2024

Thanks, @morisono, for opening this issue. I've got a couple of questions.

It would be beneficial to have an option that allows users to disable of whole frontmatter when using the extension. This feature conflicts default snippet insertion, such as auto-snippet.

If we disable the front matter section creation, the title will also get lost when creating new content. There is also the templating option for your content types (https://frontmatter.codes/docs/content-creation/content-types#using-a-template-with-the-content-type), which allows you to have predefined content in your file.

This extension may still not have a features to add uuid, random_hex, that builtin variables generate. I needs these value to auto generate. So I use this extension only for management contents for now.

Where exactly do you want to include UUIDs, HEX, ...? If it would be in the front matter, you could use custom placeholders: https://frontmatter.codes/docs/content-creation/placeholders#custom-placeholders

If you want to have these in the snippets, it would be an enhancement to the snippets feature to include this support.

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

2 participants