Home Download Buy Blog Forum Support

View current file on Github

View current file on Github

Postby buhrmi on Fri Sep 21, 2012 8:42 am

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'
Attachments
Github.zip
(2.39 KiB) Downloaded 170 times
buhrmi
 
Posts: 17
Joined: Tue Nov 08, 2011 5:59 am

Re: View current file on Github

Postby kuroir on Tue Sep 25, 2012 10:23 am

Sounds interesting, how about hosting this on GitHub itself so we can all contribute back to the package? :)
kuroir
 
Posts: 71
Joined: Thu Sep 01, 2011 11:28 pm
Location: Mexico

Re: View current file on Github

Postby kuroir on Tue Sep 25, 2012 10:26 am

Tested, works perfectly with branches. Kudos for your hard work!
kuroir
 
Posts: 71
Joined: Thu Sep 01, 2011 11:28 pm
Location: Mexico

Re: View current file on Github

Postby Kevin Yank on Tue Sep 25, 2012 11:00 am

How does it compare to the Githubinator package?
Kevin Yank
 
Posts: 18
Joined: Sat Jul 30, 2011 6:31 am

Re: View current file on Github

Postby buhrmi on Wed Sep 26, 2012 6:02 am

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.
buhrmi
 
Posts: 17
Joined: Tue Nov 08, 2011 5:59 am

Re: View current file on Github

Postby buhrmi on Wed Sep 26, 2012 6:26 am

Here is the github repo. https://github.com/buhrmi/githubify
buhrmi
 
Posts: 17
Joined: Tue Nov 08, 2011 5:59 am

Re: View current file on Github

Postby sheldno on Tue Oct 09, 2012 4:26 pm

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:
Code: Select all
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.
sheldno
 
Posts: 22
Joined: Thu Oct 06, 2011 4:09 pm

Re: View current file on Github

Postby n00ge on Fri Oct 19, 2012 5:30 pm

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.
http://twitter.com/n00ge
Sublime Text 3 dev builds | OS X 10.8.2 & Ubuntu 13.04
n00ge
 
Posts: 140
Joined: Mon Oct 05, 2009 1:23 am


Return to Plugin Announcements

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 10 guests