Default branch support
Would you consider adding a command like:
Open in GitHub: File Default Branch
where the extension would open the current file on github in the default branch? (I assume a setting for "defaultBranch" would also be needed).
I often find myself wanting to use "open in github" even when I'm in a local branch that I haven't pushed remotely. Currently if I "open in github" in that scenario it takes me to a broken link. I can then manually change the URL to have master in it, but it'd be convenient if there was a separate command I could use.
Thanks for the great tool!
I wonder if something else could be done instead, like if the local branch doesn't exist remotely then it could automatically ask for the file in the default branch?
I'm asking because we have 6 commands that have something to do with files, so duplicating those for the default branch seems like a lot, and duplicating only one of those seems a bit inconsistent, plus it seems easy to just go with muscle memory and just run the wrong command by mistake anyway.
I also think that having the main branch links would be very useful - more useful than the links for the current branch.
I wonder if something else could be done instead, like if the local branch doesn't exist remotely then it could automatically ask for the file in the default branch?
This doesn't account for the scenario where you have pushed the branch to remote (which is good practice), and you want to see main.
Sometimes you'd want to see main, and sometimes you'd want to see your branch. Copying/opening the link of the file on main is probably 99% of my and my team's use-case. It seems worth it to duplicate 6 commands.
Thank you again, for the extension.
FYI, the GitLens extension has a command: "Copy remote file URL from..." which allows you to select a branch from the dropdown.
In addition to the "Copy remote file URL" command which copies the current branch.