sshaw / git-link

Emacs package to get the GitHub/Bitbucket/GitLab/... URL for a buffer location
399 stars 74 forks source link

Feature request: Add custom macro or function to define a custom git forge. #104

Closed jgarte closed 1 year ago

jgarte commented 1 year ago

Hi,

In the name of extensibility, I'd like to request a macro or way of creating my own handler easily for a custom git forge.

For example I tried to use git-link on this forge and it failed:

https://git.cyberia.club/cyberia/capsul-flask

sshaw commented 1 year ago

Have you tried this?

jgarte commented 1 year ago

So, you're saying to just add a entry to that alist for cyberia with a custom function:

git-link-cyberia, for example?

sshaw commented 1 year ago

So, you're saying to just add a entry to that alist for cyberia with a custom function:

Yes. And given the arguments passed to that function you should be able to generate the link.

sshaw commented 1 year ago

Closing as the documentation should be sufficient. Feel free to reopen if you are still experiencing issues.