microsoft / codetour

VS Code extension that allows you to record and play back guided tours of codebases, directly within the editor.
https://aka.ms/codetour
MIT License
4.36k stars 113 forks source link

Add protocol handler to open tour from gist by clicking on a link. #154

Closed plisy closed 3 years ago

plisy commented 3 years ago

Implementing VS Code's Protocol Handler API for opening tours from gists would allow scenarios like dropping a link for an exported tour into documentation.

E.g.

[Start in VS Code](vscode://vsls-contrib.codetour/openTour?url=https%3A%2F%2Fgist.github.com%2Fplisy%2F24c5060c749bda358f279b08c4570344)
lostintangent commented 3 years ago

Hey! It's not exactly what you're asking for, but as an FYI, the GistPad extension supports this right now. It has a protocol handler for opening any gist (or repo), and if you right-click a gist in the tree, you can select the Copy GistPad URL menu in order to generate the full deep link for a specific gist.

When you have the GistPad extension installed, the CodeTour tree will have a new context-menu for tours, that allow you to export them to a gist. And so together, that makes it easy to record a tour, export it to a gist and then share a link with others:

Would that be helpful at all?

lostintangent commented 3 years ago

I'm going to close this as resolved for now, assuming that the GistPad handler is sufficient? But, please reopen this if it's not. Thanks!