GitHub and TextMate Unite
I wanted to go from a source file to the equivalent file on github. I wanted a selection of lines in TextMate editor to also be selected when I was taken to github.com. I wanted to cut back on my senseless killing of innocent pasties.
Finally, I wanted to make a nice little video to show off the new GitHub.tmbundle.
TextMate and GitHub: Show the current file in GitHub from Dr Nic on Vimeo.
Which remote repository is it choosing?
If you have multiple remote references to github.com repositories, then the algorithm picks one in the following order:
- A remote named ‘github’
- A remote named ‘origin’
- The first remote for a github.com repository
What else could go in a GitHub textmate bundle?
Trackbacks
Use this link to trackback from your own site.






You rule.
totally awesome!
BTW it requires the git gem. Make sure you have it installed before giving a try to to yet another very useful TM bundle.
[...] Источник: Dr.Nic blog. [...]
Latest version of bundle now uses https for private repos.
[...] GitHub and TextMate Unite - Another TextMate bundle from Dr. Nic. [...]
Great so far! I’d love a shorthand for the “annotate” command — something that’d jump to the page for the commit that most recently changed the line you’re on.
@andrew - yeah that’d be cool indeed. The tricky bit is that you’re looking at local versions of a file from one of several remotes and/or several branches. But I’m sure we can algorithmically find which commit changed that line to be equal to what it is now. Sounds cool indeed.
For VIM users: http://github.com/solars/github-vim/tree/master
Hmm. Just installed the bundle. I have the git gem installed. The command brings up the file in the GitHub repository but does not highlight the selected code. It is a private repository. Could this be the problem?
@phil - I did apply a fix for the http/https issue the other day. Have you added + committed + pushed the file?
@andrew - feature added; thx for the idea.
A promising approach in software develoment where:
- developers act as friends
- code act as content
I call it the developer 2.0 era.
I would like to share you some opinion about this stuff.
Thanks
Francesco