grit icon indicating copy to clipboard operation
grit copied to clipboard

Feature request: grit browse

Open ezzatron opened this issue 7 years ago • 6 comments

NAME:
   grit browse - Open a browser window to the GitHub project associated with <slug>.

USAGE:
   grit browse <slug>

ezzatron avatar Dec 04 '17 01:12 ezzatron

Blocked by #57

jmalloc avatar Dec 04 '17 03:12 jmalloc

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

jmalloc avatar Dec 04 '17 08:12 jmalloc

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?

jmalloc avatar Dec 12 '20 04:12 jmalloc

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

ezzatron avatar Dec 12 '20 04:12 ezzatron

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.

jmalloc avatar Dec 12 '20 04:12 jmalloc

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.

ezzatron avatar Nov 26 '23 22:11 ezzatron