Issue: troubles with multiple folders workspaces #86

Closed
opened 2026-10-05 02:24:50 +02:00 by adam · 4 comments
Owner

front-matter extension does not seem to be able to deal with multiple folders workspaces.

Describe the bug
Say you got a multi-project workspace with

  • a Hugo Blog, AND
  • a Hugo Theme for your blog

Front matter would only intitialize the first folder of this two folders workspace.

Even if you manually create the ".templates" sub folder in the correct project the dashboard will not find it and will not use it.

To Reproduce
Create a multi folder project with

  • a dummy project first
  • a project with front matter as the second folder
  • try to initialize front-matter extension with/for the second project/"workspace folder"

Expected behavior
Front matter extension should be able to work on a per-project basis and ask for which project you want to enable/initialize the extension.

Behaviouir should be probably the same for the dashboard : you may want to display on a per-project basis. Or all... (configuration option ? I'm not sure..)

BTW: not sure if it is a bug or a feature request...
In my case the extension started adding files and folders in the wrong project and spoiled it somehow... This is why I chose bug over feature request.

front-matter extension does not seem to be able to deal with multiple folders workspaces. **Describe the bug** Say you got a multi-project workspace with - a Hugo Blog, AND - a Hugo Theme for your blog Front matter would only intitialize the first folder of this two folders workspace. Even if you manually create the ".templates" sub folder in the correct project the dashboard will not find it and will not use it. **To Reproduce** Create a multi folder project with - a dummy project first - a project with front matter as the second folder - try to initialize front-matter extension with/for the second project/"workspace folder" **Expected behavior** Front matter extension should be able to work on a per-project basis and ask for which project you want to enable/initialize the extension. Behaviouir should be probably the same for the dashboard : you may want to display on a per-project basis. Or all... (configuration option ? I'm not sure..) BTW: not sure if it is a bug or a feature request... In my case the extension started adding files and folders in the wrong project and spoiled it somehow... This is why I chose bug over feature request. <!-- github-sync-id:1001383095 -->
adam closed this issue 2026-10-05 02:24:50 +02:00
Author
Owner

Thank you @tchinchow for opening the issue. Front Matter currently focusses to be used in a single folder workplace. With the upcoming release and the team settings functionality, we can focus on enhancing the behavior of multi-folder workspaces because the frontmatter.json file will allow the extension to know which your blog folder is.

Thank you @tchinchow for opening the issue. Front Matter currently focusses to be used in a single folder workplace. With the upcoming release and the team settings functionality, we can focus on enhancing the behavior of multi-folder workspaces because the `frontmatter.json` file will allow the extension to know which your blog folder is. <!-- github-comment-id:923683662 -->
Author
Owner

@tchinchow good news, I just completed the functionality to support workspaces with multiple folders.

The logic is that it will look for the folder with a frontmatter.json file and it will take that as the default. If none is found, it will ask you to select a folder and creates the file in that one.

Screenshot 2021-10-01 at 10 06 53

If you want, you can already test it out with the beta version of the extension. Install it via: https://beta.frontmatter.codes or search for Front Matter BETA.

@tchinchow good news, I just completed the functionality to support workspaces with multiple folders. The logic is that it will look for the folder with a `frontmatter.json` file and it will take that as the default. If none is found, it will ask you to select a folder and creates the file in that one. ![Screenshot 2021-10-01 at 10 06 53](https://user-images.githubusercontent.com/2900833/135588486-6054b0c5-27a4-4169-b287-cc4203459762.png) If you want, you can already test it out with the beta version of the extension. Install it via: https://beta.frontmatter.codes or search for `Front Matter BETA`. <!-- github-comment-id:932024872 -->
Author
Owner
BETA docs have also been updated: https://beta.frontmatter.codes/docs/getting-started#workspaces-with-multiple-folders <!-- github-comment-id:932032815 -->
Author
Owner

Works like a charm indeed.
Thank you @estruyf .

Works like a charm indeed. Thank you @estruyf . <!-- github-comment-id:1044771952 -->
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#86