reddit / emacs

Request: Method To Open Project’s GitHub Repository From Projectile?

noncogs · 2022-09-26 18:19
Hi, I was just wondering if there’s a means of using projectile to open a projects GitHub repository? A quick couple of searches did not show an obvious answer, but I believe I’ve read about a user who did this previously. Thank you!
organic-bookworm · 2022-09-26 20:28
Not `projectile`\-specific, but see [`browse-at-remote`](https://github.com/rmuslimov/browse-at-remote) and [`forge`](https://github.com/magit/forge) (of interest are `forge-browse-*` commands).
aisamu · 2022-09-26 21:56
This is how doom-emacs does it (uses only `browse-at-remote`, bound to `SPC g o h`): https://github.com/doomemacs/doomemacs/blob/e9ef904eeef28c31ca07055f0cce8c5eafeb4179/modules/emacs/vc/autoload/vc.el#L3-L7
eleven_cupfuls · 2022-09-26 23:02
I heard about this project recently; it does not open the webrowser directly, but it puts URLs for the forge in the kill ring, including line numbers: https://github.com/sshaw/git-link I am sure you could hook it up to `browse-url` pretty easily.
noncogs · 2022-09-27 00:46
Thanks guys! Browse-at-remote is what I was looking for. I should’ve realized the word “remote” was what I needed. lol