Enhancement: auto switch to editor panel when opening a markdown file #713

Closed
opened 2026-10-05 03:01:41 +02:00 by adam · 8 comments
Owner

Is your feature request related to a problem? Please describe.
I'm slightly frustrated when the Frontmatter editor panel isn't open when I open a markdown file.

Describe the solution you'd like
I would like the vscode primary side bar to automatically switch to the frontmatter editor panel when I open a markdown file, either from the front matter dashboard or from the vscode file explorer

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I've considered making a keyboard shortcut and/or macro of some sort to switch to it

Additional context
Working on additional machines, sometimes windows, sometimes mac, sometimes with different keyboards, means a shortcut may not always work and remembering to complete the action is annoying. It would be good to be able to toggle this on and off in the front matter settings

**Is your feature request related to a problem? Please describe.** I'm slightly frustrated when the Frontmatter editor panel isn't open when I open a markdown file. **Describe the solution you'd like** I would like the vscode primary side bar to automatically switch to the frontmatter editor panel when I open a markdown file, either from the front matter dashboard or from the vscode file explorer **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. I've considered making a keyboard shortcut and/or macro of some sort to switch to it **Additional context** Working on additional machines, sometimes windows, sometimes mac, sometimes with different keyboards, means a shortcut may not always work and remembering to complete the action is annoying. It would be good to be able to toggle this on and off in the front matter settings <!-- github-sync-id:2817426189 -->
adam closed this issue 2026-10-05 03:01:41 +02:00
Author
Owner

Thanks @tlourey for the suggestion!

Thanks @tlourey for the suggestion! <!-- github-comment-id:2639262213 -->
Author
Owner

@tlourey I have implemented this enhancement.

Set the frontMatter.panel.openOnSupportedFile setting to true in your configuration. Once you open a supported file, by default markdown, but it can be changed with the frontMatter.content.supportedFileTypes setting, it opens the panel.

You can also change this setting via the dashboard settings view.

Image

Try it in the latest beta version, and let me know how it works.

https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta

@tlourey I have implemented this enhancement. Set the `frontMatter.panel.openOnSupportedFile` setting to `true` in your configuration. Once you open a supported file, by default markdown, but it can be changed with the `frontMatter.content.supportedFileTypes` setting, it opens the panel. You can also change this setting via the dashboard settings view. ![Image](https://github.com/user-attachments/assets/c1851324-7833-4f87-92bb-73c77414798c) Try it in the latest beta version, and let me know how it works. https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta <!-- github-comment-id:2639380250 -->
Author
Owner

It seems to be working great.

It seems to be working great. <!-- github-comment-id:2639743414 -->
Author
Owner

When do you think it will come out of beta? No rush just curious 🙂

When do you think it will come out of beta? No rush just curious 🙂 <!-- github-comment-id:2687069349 -->
Author
Owner

@tlourey right now 😃, version 10.8.0 has been released

@tlourey right now 😃, version 10.8.0 has been released <!-- github-comment-id:2687640102 -->
Author
Owner

What rotten timing. I just figured out there is a possible bug.

If I have the primary sidebar closed, but open a markdown file or switch to a markdown file tab, it reopens the sidebar and goes to the front matter tab. Is there a way to only perform the the jump when the primary side bar is not hidden?

What rotten timing. I just figured out there is a possible bug. If I have the primary sidebar closed, but open a markdown file or switch to a markdown file tab, it reopens the sidebar and goes to the front matter tab. Is there a way to only perform the the jump when the primary side bar is not hidden? <!-- github-comment-id:2689567036 -->
Author
Owner

@tlourey, that is indeed a hard issue to fix, as I have no access to the context from Visual Studio Code to know when the side panel is closed.

There is an issue open on the VS Code issue list to request the enhancement to have a getContext functionality: https://github.com/microsoft/vscode/issues/10471#issuecomment-2683754734

@tlourey, that is indeed a hard issue to fix, as I have no access to the context from Visual Studio Code to know when the side panel is closed. There is an issue open on the VS Code issue list to request the enhancement to have a **getContext** functionality: https://github.com/microsoft/vscode/issues/10471#issuecomment-2683754734 <!-- github-comment-id:2690153361 -->
Author
Owner

Oh well. All good. Thanks again

Oh well. All good. Thanks again <!-- github-comment-id:2692090091 -->
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#713