Skip to content

Frontmatter YAML editor #3571

Open
Open

Description

@timotoots

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.

Activity

  1. added
    enhancement
    on Dec 13, 2022
  2. susnux commented on Dec 14, 2022

    @susnux
    Contributor

    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.

  3. max-nextcloud commented on Dec 14, 2022

    @max-nextcloud
    Contributor

    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.

  4. timotoots commented on Dec 14, 2022

    @timotoots
    Author

    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.

  5. datenangebot commented on Jun 28, 2023

    @datenangebot

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions