Open ezzatron opened 6 years ago
Blocked by #57
Partially addressed in v0.6.7 -- naively assumes all repos are on GitHub or a GHE installation.
I was thinking about changing the open
(alias browse
) command to navigate to the current branch/tag/hash in the code view, rather than always loading the default branch. Thoughts?
Seems useful to me. Perhaps a flag to open the default instead would also be good.
Just as a note, the official Github CLI also includes a similar feature in the gh repo view -w
command, which is a bit wordy, but could be aliased.
I had been wondering whether this command has a place in grit
going forward, though I think with the addition of the feature mentioned above (navigating to the current branch, etc) and the fact that grit is not actually github-specific it probably still deserves a place.
Another small thing that would be nice here. A way to directly open the "homepage" URL set on a GitHub repo. E.g. on a Terraform config repo I usually set this to link to the workspace on Terraform Cloud, and if you could to grit open homepage
(or similar), you could get a lot of power out of a simple feature.