Enhancement: Ability to create new data files for a folder #658

Closed
opened 2026-10-05 02:59:04 +02:00 by adam · 2 comments
Owner

Add the functionality to create new data files for the data folders (frontMatter.data.folders).

  • Create a new property to turn on data file creation
  • Add a create new data folder button on the dashboard
    • If only one data folder is configured, use that one and ask for the name of the file
    • If multiple are configured, ask to which folder you want to create the data file and provide the name

Discussion on Discord: https://discord.com/channels/992409023607476224/992409556351189082/1266087192242028617

Add the functionality to create new data files for the data folders (`frontMatter.data.folders`). - [x] Create a new property to turn on data file creation - [x] Add a create new data folder button on the dashboard - [x] If only one data folder is configured, use that one and ask for the name of the file - [x] If multiple are configured, ask to which folder you want to create the data file and provide the name > Discussion on Discord: https://discord.com/channels/992409023607476224/992409556351189082/1266087192242028617 <!-- github-sync-id:2431700300 -->
adam closed this issue 2026-10-05 02:59:04 +02:00
Author
Owner

In the 10.4 BETA you can give it a try.

I have added the following properties on the frontMatter.data.folders setting:

  • enableFileCreation: Defines if you want to enable file creation for the folder
  • fileType: The file type to create the new file. Only json or yaml are supported.
{
  "frontMatter.data.folders": [{
    "id": "data",
    "path": "[[workspace]]/data/authors",
    "singleEntry": true,
    "enableFileCreation": true,
    "fileType": "json",
    "schema": {
      ...
    }
  }]
}

Once configured, you'll see the following new experiences/elements.

image

image

In the 10.4 BETA you can give it a try. I have added the following properties on the `frontMatter.data.folders` setting: - `enableFileCreation`: Defines if you want to enable file creation for the folder - `fileType`: The file type to create the new file. Only `json` or `yaml` are supported. ```json { "frontMatter.data.folders": [{ "id": "data", "path": "[[workspace]]/data/authors", "singleEntry": true, "enableFileCreation": true, "fileType": "json", "schema": { ... } }] } ``` Once configured, you'll see the following new experiences/elements. ![image](https://github.com/user-attachments/assets/0e90e0c1-283e-489d-aebb-dd15209ac446) ![image](https://github.com/user-attachments/assets/4aeac3bf-fd3b-4e4c-ab13-4abf0e57cff1) <!-- github-comment-id:2288560826 -->
Author
Owner

This functionality is now part of the v10.4.0 main release.

This functionality is now part of the `v10.4.0` main release. <!-- github-comment-id:2373237914 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#658