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

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

Open
tlourey opened this issue Jan 29, 2025 · 3 comments
Open
Labels
enhancement New feature or request To document This item needs to be documented v10.8.0 Project: v10.8.0

Comments

@tlourey
Copy link

tlourey commented Jan 29, 2025

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

@tlourey tlourey added the enhancement New feature or request label Jan 29, 2025
@estruyf
Copy link
Owner

estruyf commented Feb 6, 2025

Thanks @tlourey for the suggestion!

@estruyf estruyf added this to v10.8.0 Feb 6, 2025
@estruyf estruyf moved this to In progress in v10.8.0 Feb 6, 2025
@project-labels project-labels bot added v10.8.0 Project: v10.8.0 In progress This is actively being worked on labels Feb 6, 2025
@estruyf
Copy link
Owner

estruyf commented Feb 6, 2025

@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

@estruyf estruyf moved this from In progress to To document in v10.8.0 Feb 6, 2025
@project-labels project-labels bot added To document This item needs to be documented and removed In progress This is actively being worked on labels Feb 6, 2025
@tlourey
Copy link
Author

tlourey commented Feb 6, 2025

It seems to be working great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request To document This item needs to be documented v10.8.0 Project: v10.8.0
Projects
None yet
Development

No branches or pull requests

2 participants