Skip to content

Arrays / lists #3

@greggh

Description

@greggh

Does the tool support arrays? I have a lot of files with front matter, and some look like this:

---
- id: THIS_FILES_ID
- characters:
  - character_id: THIS_CHARACTERS_ID
    character_name: John Smith

  - character_id: THIS_CHARACTERS_ID
    character_name: Jane Doe
---

How would I edit or set the second characters name?

In this article that format is described as an Array of Objects, https://www.w3schools.io/file/yaml-arrays/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions