Allow choosing remote (if multiple) for 'Copy URL to clipboard' #1990
Description
While contributing to OSS projects and having a conversation or question in an issue or chat, I often have tabs open of existing unchanged files that have been around for a long time in the codebase and I want an easy way to grab a permalink to the current upstream commit and use it in the conversation. The more permanent the better, because I have gone back to old conversations where these links were dead.
I've noticed that usually ends up being a hassle. 'Copy URL to clipboard' creates a URL to my fork (where nothing is permanent) rather than the upstream permalink and it also may link to a commit that doesn't exist upstream and may not have even been pushed to my fork yet.
Just brainstorming. Would it be possible to detect the last commit in which the selected lines have changed, blame-style, and then construct an upstream link from that if the commit exists upstream and fall back to linking to my fork if it only exists in my fork? (If it doesn't exist anywhere online, does it currently show an error message?)
Or maybe show a list of GitHub remotes in a submenu and allow me to use upstream, even if I'll be getting an older version of the file?