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

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

Open
asilverman opened this issue Apr 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@asilverman
Copy link

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):

  • VS Code Version
Version: 1.77.3 (user setup)
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:02.548Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes
  • GistPad Version
    v0.4.1

Additional context
Add any other context about the problem here.

@asilverman asilverman added the bug Something isn't working label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant