lostintangent / gistpad

VS Code extension for managing and sharing code snippets, notes and interactive samples using GitHub Gists
https://aka.ms/gistpad
MIT License
937 stars 58 forks source link

`Copy GitHub URL` context menu command copies the raw version of the file instead of the human friendly one #331

Open asilverman opened 1 year ago

asilverman commented 1 year ago

Describe the bug I expect Copy GitHub URL context menu command to give me a link to a human friendly version of the gist vs the raw version. At least I would like to be able to configure the behavior of the context menu command to return one or the other.

To Reproduce Steps to reproduce the behavior:

  1. On any gist, right click the icon in 'Gistpad' > Copy GitHub URL image
  2. Paste the value in notepad, it is a link to the raw contents (i.e. https://gist.githubusercontent.com/<your_gh_alias>/e1cc187/raw/281/your_gist_filename.md)

Expected behavior I would like to get the human friendly link, a link in the form: https://gist.github.com/<your_gh_alias>/e1cc187.

The reasoning is that I want to share the gist link with other people, sharing the raw link is not human friendly and there is no clear way to easy way go from the human friendly link to the raw link while the inverse is trivial (by clicking 'raw' in the ui as shown below)

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.