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

Frontmatter YAML editor #3571

Open
timotoots opened this issue Dec 13, 2022 · 4 comments
Open

Frontmatter YAML editor #3571

timotoots opened this issue Dec 13, 2022 · 4 comments
Labels
1. to develop enhancement New feature or request

Comments

@timotoots
Copy link

Is your feature request related to a problem? Please describe.
The latest update is great that you can edit frontmatter YAML fields. Thanks! But it's a raw text only.

Describe the solution you'd like
It would be great if it gets developed into more user-friendly YAML editor. So the fields could be added and removed more like a table interface.

Describe alternatives you've considered
It's possible to edit now the fields, but to give front matter in hands of non-technical personnel is complicated.

Additional context
Add any other context or screenshots about the feature request here.

@timotoots timotoots added the enhancement New feature or request label Dec 13, 2022
@susnux
Copy link
Contributor

susnux commented Dec 14, 2022

As I personally use it for editing files for hugo, I would love to have this.

But if someone is about to develop this, please keep in mint, that front matters can have any format.
They are not restricted to yaml, I already have seen json and even toml.

@max-nextcloud
Copy link
Collaborator

I think one challenge here also is that all these front matter file formats allow defining nested key value mappings at an arbitrary depth such as

person:
    name:   Dorothy
    parents: 
        mother:
            name: Helen
            parents:
               mother:

I guess you get my point. These languages are all so complex that writing a generic editor for them is complex as well and might not result in an intuitive interface either.

Given the examples on hugos homepage typical frontmatter seems to be far less complex. I think the main problem is to come up with a way to easily edit this simple subset without breaking more complex structures.

@timotoots
Copy link
Author

timotoots commented Dec 14, 2022

Yes, I also started using Text for Hugo files, before it was not possible. It makes it great to collaborate on static website editing.

I think supporting two levels of nesting would cover 95% of the use cases. Even without nested fields it would be helpful, because simple pages just use title and description fields.

@datenangebot
Copy link

This is about:

It would be great if it gets developed into more user-friendly YAML editor. So the fields could be added and removed more like a table interface.

So feature request, still open.

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

No branches or pull requests

5 participants