estruyf / vscode-front-matter

Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...
https://frontmatter.codes
MIT License
1.95k stars 77 forks source link

Enhancement: Support the same fields types in data files as for front matter content #757

Open tohagan opened 7 months ago

tohagan commented 7 months ago

Is your feature request related to a problem? Please describe.

The list of field types supported by the Front Matter editor should IMHO be the same as those supported by Data files. For example, I think image and block and contentRelationship fields are equally useful in Data files.

Describe the solution you'd like

I'm recommending you consider replacing the JSON schema editor used to create Data file records with the same editor used to edit Front Matter YAML. So the properties in frontMatter.data.files just become fields.

estruyf commented 7 months ago

Thanks for the suggestion. 🙏