sshaw / git-link

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

Feature Request: Choose from multiple remotes #113

Closed jgarte closed 11 months ago

jgarte commented 11 months ago

Hi,

If I have multiple remotes, I'd like to choose from a particular one to construct the link.

What do you think of this feature request?

sshaw commented 11 months ago

Hi, this behavior already exists. From the docs:

Functions can be called interactively (M-x git-link) or via a key binding of your choice ... With a single prefix argument prompt for the remote's name. Defaults to "origin".

The prompt uses completing-read.

Does this differ from what you were thinking?

sshaw commented 11 months ago

Closing as this functionality already exists. Feel free to reopen if what you're suggesting is indeed different.