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

Make it so npm tasks can be run from markdown-based text in steps #51

Closed
BrianRosamilia opened this issue Apr 3, 2020 · 2 comments
Closed
Labels

Comments

@BrianRosamilia
Copy link

(Partially from #39 )

A suggestion that would have really helped me and I think would be amazing and really set this project ahead of traditional presentation tools :

I was glad to see the tour steps support markdown.

So when I type npm run storybook it shows how I expect it and how another developer would like to read it.

But it would be great if typing that was translated to

▶️ npm run storybook

And clicking the play button would actually run the task.

I was using Codetour to do a live presentation to a group of developers and it was slightly cumbersome to use my (extremely loud) mechanical keyboard to show a few new npm tasks. It would've been great to just click a button and show a task running.

@lostintangent
Copy link
Member

Thanks for reporting this! I absolutely want to enable this :) It's currently dependent on a change in VS Code itself, and so once that's shipped, I'll add support for this: microsoft/vscode#93034.

// CC @rebornix

@lostintangent
Copy link
Member

This feature has been shipped in the latest extension update. In a step comment, you can now embed a shell command using the following syntax: >> npm run compile, where npm run compile is an arbitrary shell command. That syntax will be converted into a hyperlink, that when clicked, will run the shell command in the VS Code integrated terminal.

Let me know if you have any feedback on this experience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants