Enhancement: Having multiple startCommands #755

Open
opened 2026-10-05 03:03:57 +02:00 by adam · 3 comments
Owner

Having multiple startCommands

Have you ever considered, the "frontMatter.framework.startCommand" could have multiple entries. When building my web sites or adding new content, I often find my self running the startCommand with multiple parameters, e.g. showing drafts and future posts, to get a visual view of posts and layout etc.

On the other hand, when changing some code or layout, I quite often want to run the startCommand with less parameters, no drafts, no future posts etc.

I am imagine the first entry should be the default, however if multiple entries has been added to the frontMatter.framework.startCommand, a dropdown on "Start Server" button should allow me to change from one startCommand to another.

Thank you for a great solution, it is much appreciated.

--Jesper

**Having multiple startCommands** Have you ever considered, the "frontMatter.framework.startCommand" could have multiple entries. When building my web sites or adding new content, I often find my self running the startCommand with multiple parameters, e.g. showing drafts and future posts, to get a visual view of posts and layout etc. On the other hand, when changing some code or layout, I quite often want to run the startCommand with less parameters, no drafts, no future posts etc. I am imagine the first entry should be the default, however if multiple entries has been added to the frontMatter.framework.startCommand, a dropdown on "Start Server" button should allow me to change from one startCommand to another. Thank you for a great solution, it is much appreciated. --Jesper <!-- github-sync-id:3425030783 -->
Author
Owner

Sidebar: this feels like abuse of the plugin ;) Why not, given that we are already in VSCode, using the .vscode/task.json system, to create a couple of starter scripts? They will appear at the top of the sidebar and will have a dropdown in the run button. Just saying. Sidebar-end :)

Sidebar: this feels like abuse of the plugin ;) Why not, given that we are already in VSCode, using [the .vscode/task.json system](https://code.visualstudio.com/docs/debugtest/tasks#vscode), to create a couple of starter scripts? They will appear at the top of the sidebar and will have a dropdown in the run button. Just saying. Sidebar-end :) <!-- github-comment-id:3301761446 -->
Author
Owner

@davidsneighbour interesting, I wasn't aware of this option, however I still thing it would be nice to have in the Frontmatter action - I will look into VS Code Tasks and give it a try.

Thanks
--Jesper

@davidsneighbour interesting, I wasn't aware of this option, however I still thing it would be nice to have in the Frontmatter action - I will look into VS Code Tasks and give it a try. Thanks --Jesper <!-- github-comment-id:3301781188 -->
Author
Owner

I agree with @davidsneighbour, although I can see the point of having the ability to open a new terminal and run a command. Like the custom actions, but they run a script in the background, have an option or type to open a terminal.

I agree with @davidsneighbour, although I can see the point of having the ability to open a new terminal and run a command. Like the custom actions, but they run a script in the background, have an option or type to open a terminal. <!-- github-comment-id:3311155060 -->
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#755