CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

✨ Copy Link to Code

Open thecoolwinter opened this issue 1 year ago • 1 comments

Description

It would be awesome if CodeEdit could copy links to code when the workspace has a remote on GitHub.

I'd imagine it's on a key command like Command-shift-c as well as a button in the file inspector. It would only be abled when source control is on a branch that is tracked by a remote on GitHub. Then we can craft a link to the correct branch/file/lines using GitHub's permalink format.

thecoolwinter avatar Jan 07 '25 16:01 thecoolwinter

That's a great idea- although I think you might want to avoid Command+shift+c as the shortcut... on MacOS tends to be "Copy as..." or "Copy as Rich Text".

Maybe just let the user configure their own shortcut?

ben-p-commits avatar Aug 20 '25 15:08 ben-p-commits