Sublime Forum

View current file on Github

#1

NOTE: Currently it only works on OSX. I’d need some help to get this to work on Windows/Linux. Please see if you can get it work.

If the file you’re currently editing is hosted inside a github repository, this command will open a browser tab and show the file on Github.

Usage: Shift-Command-P and choose ‘View current file on Github’
Github.zip (2.39 KB)

0 Likes

#2

Sounds interesting, how about hosting this on GitHub itself so we can all contribute back to the package? :smile:

0 Likes

#3

Tested, works perfectly with branches. Kudos for your hard work!

0 Likes

#4

How does it compare to the Githubinator package?

0 Likes

#5

I don’t know, did not know about the existence of this plugin. I tried it, but it does not care about branches… Probably gonna patch that in.

0 Likes

#6

Here is the github repo. github.com/buhrmi/githubify

0 Likes

#7

Thanks for your work on this very helpful feature!

When I run the command “View File on Github” I receive an error in the console:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 356, in run_
TypeError: run() got an unexpected keyword argument 'url'

Also I’m confused as to which plugin, if any, you intend to continue supporting… githubinator or githubify? I see that they’ve both recently received patches.

0 Likes

#8

I’ve been using the GitHubinator package for a while now. It does a good job of handling branches. You can select lines or line ranges and that works as well.

0 Likes