estruyf / vscode-front-matter

Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...

Home Page:https://frontmatter.codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feedback: Custom scripts appear only on main dashboard

davidsneighbour opened this issue · comments

I have a bunch of custom actions defined in a subfolder config. Recently, I'm not sure when exactly, it might have been a while, the buttons to run these scripts disappeared from the sidebar panel when I was inside my content files. I know the buttons were there. Now they are not.

I find the actions however in the three dots menu on the main dashboard.

Did that change somehow or did another config option hide these actions? I removed frontMatter.panel.actions.disabled from my config to no change.

My main config is here and here.

Do you mean these actions?

image

I just verified it on Windows with both the stable and beta versions.

image

Don't spot any issues. 🤔

I should have clicked around... I think the issue might be elsewhere. Can you try to follow these steps:

  • Open VSCode, Frontmatter dashboard opens
  • Left sidebar open the project/folder view, close the frontmatter dashboard
  • select for instance content > blog > 2024 > music to program 2 pt 8 > index.md
  • click the FM icon to switch the left sidebar

It opens an overview screen like this:

index md-kollitsch dev(Workspace)-VisualStudioCode_1874x1058_20240318-18:09:42

(sidenote: If I click on "recently modified" items in that side panel view, they load in the editor view without updating the left column.)

My problem might be that without the Main Dashboard open in the editor area, the left side panel does not automatically update on new or switches to the editor. Or maybe another plugin is interfering with Frontmatter? But that would be quite insecure for VSCode.

If I keep the dashboard open, the left side updates and shows what you have in your screenshots, which is a start :)

Found it! It was only in that file. Saw that my VSCode instance gave an error on the YAML.

image

Updating the YAML content for description and summary to following contents fixed it:

description: '"Flow State" by Above & Beyond is in my opinion an ideal soundtrack for enhancing concentration and workflow.'
summary: "\"Flow State\" by Above & Beyond is in my opinion an ideal soundtrack for enhancing concentration and workflow. The album's 49 minutes of ambient compositions and neo-classical soundscapes create a serene and non-intrusive background, conducive to entering a state of deep focus, often referred to as the \"flow state\" in programming and other cognitive-intensive tasks."

Now the panel rendered correctly.

I'm going to implement a change that shows an error message like this:

image