bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
455 stars 98 forks source link

Add commands to generate GitHub permalink URLs #117

Closed wearhere closed 5 years ago

wearhere commented 5 years ago

i.e. URLs that reference the current HEAD of the current branch, like if you visited a remote URL and pressed ‘y’, as described here https://help.github.com/en/articles/getting-permanent-links-to-files.

This commit adds permalink equivalents for all commands except “Edit”, since GitHub only supports editing files on branches.

Tested that every URL command works as expected.

wearhere commented 5 years ago

Wow what a fast response, thank you! Also thanks for a great plugin in general, invaluable to be able to copy GitHub URLs from the editor as way of pointing fellow devs to some bit of code.

wearhere commented 5 years ago

@bgreenlee what's the process for this change being picked up in the Package Control version of the plugin?

bgreenlee commented 5 years ago

It should be automatic. I'm not sure how often they scan.

bgreenlee commented 5 years ago

Ah, I probably needed to bump the version. Just did that.