estruyf / vscode-demo-time

A Visual Studio Code extension to help you script your demos
https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-demo-time
MIT License
12 stars 1 forks source link

Enhancement: Integration with Marp #6

Open svrooij opened 3 days ago

svrooij commented 3 days ago

I think Demo time would be an awesome combination with Marp it allows you to create pretty good looking slides in markdown and being able to switch between slides and code with demo time would be so cool.

Just throwing this idea out there, will try to do this without an integration but how cool would it be if you could say Show slide x from someFile.md in Demo Time. Then we would no longer have to leave VSCode ever.

estruyf commented 3 days ago

Hi @svrooij, thanks for the suggestion. I'm a big fan of Slidev, very similar to Marp.

In last presentation, I've created a component which could trigger a demo by its id from Slidev.

I also open the slides from the Demo Time panel. Check out: https://github.com/estruyf/presentation-m365-playwright-github-actions/tree/start

I still have to share the Slidev component.

estruyf commented 2 days ago

For slidev I created a component that can trigger like this:

<vscode-action
    click="1"
    port="37105"
    command="demo-time.runById"
    args="1.recap.show_web_part" />

The port is used to listen to the commands on the websocket. Using my remote control extension for this one: https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-remote-control