jmalloc / grit

Keep track of your local Git clones.
MIT License
22 stars 3 forks source link

Feature request: grit browse #56

Open ezzatron opened 6 years ago

ezzatron commented 6 years ago
NAME:
   grit browse - Open a browser window to the GitHub project associated with <slug>.

USAGE:
   grit browse <slug>
jmalloc commented 6 years ago

Blocked by #57

jmalloc commented 6 years ago

Partially addressed in v0.6.7 -- naively assumes all repos are on GitHub or a GHE installation.

jmalloc commented 3 years ago

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?

ezzatron commented 3 years ago

Seems useful to me. Perhaps a flag to open the default instead would also be good.

jmalloc commented 3 years ago

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.

ezzatron commented 1 year ago

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.