vermiculus / magithub

**DEPRECATED - please use Forge instead!** -- Magit-based interfaces to GitHub
GNU General Public License v3.0
579 stars 62 forks source link

(Feature Request) Copy github url of buffer file and put it in kill-ring. #387

Closed RenWenshan closed 5 years ago

RenWenshan commented 5 years ago

I have some a self defined command that puts the github URL of current buffer file into the kill-ring. Recently I started using magithub (thanks for the awesome work!) and it has a command magithub-browse-file which has similiar functionality but it opens the URL in a browser instead.

Can we separate the logic of constructing the url (maybe a function magithub-browse-file--get-url) so people can make use of its result?

vermiculus commented 5 years ago

Nice idea – done! 👍