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

Issue: troubles with multiple folders workspaces #110

Closed
tchinchow opened this issue Sep 20, 2021 · 4 comments
Closed

Issue: troubles with multiple folders workspaces #110

tchinchow opened this issue Sep 20, 2021 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@tchinchow
Copy link

tchinchow commented Sep 20, 2021

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.

@estruyf
Copy link
Owner

estruyf commented Sep 21, 2021

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.

@estruyf estruyf added the enhancement New feature or request label Sep 21, 2021
@estruyf estruyf added this to the 4.1.0 milestone Oct 1, 2021
@estruyf
Copy link
Owner

estruyf commented Oct 1, 2021

@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.

@estruyf
Copy link
Owner

estruyf commented Oct 1, 2021

@tchinchow
Copy link
Author

Works like a charm indeed.
Thank you @estruyf .

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

No branches or pull requests

2 participants