github-linker icon indicating copy to clipboard operation
github-linker copied to clipboard

Feature request: inverse operation, start with a GitHub URL which contains hash line number(s), and open the file in VSCode at the designated line / code selection

Open danielweck opened this issue 5 years ago • 0 comments

Hello, great extension, thank you! Very useful for code peer reviews over Slack / instant messaging, to exchange URLs whilst working locally from VSCode. However the inverse functionality would be very useful too.

For example I would like to be able to copy such URL: https://github.com/gimenete/github-linker/blob/8a57d4771ee68a202f6f987cdd724ab8007da69a/src/extension.ts#L11-L22

https://github.com/gimenete/github-linker/blob/8a57d4771ee68a202f6f987cdd724ab8007da69a/src/extension.ts#L11-L22

...and to show src/extension.ts in VSCode with the code selection line 11-22 (extracted from the URL #L11-L22).

Any thoughts?

danielweck avatar Sep 08 '20 11:09 danielweck