GitHub and TextMate Unite

Posted by Dr Nic on May 26, 2008

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:

  1. A remote named ‘github’
  2. A remote named ‘origin’
  3. 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.

Comments

Leave a response

  1. Tom Preston-Werner Mon, 26 May 2008 17:33:13 UTC

    You rule.

  2. Matt Aimonetti Mon, 26 May 2008 18:09:16 UTC

    totally awesome!

  3. Matt Aimonetti Mon, 26 May 2008 18:27:31 UTC

    BTW it requires the git gem. Make sure you have it installed before giving a try to to yet another very useful TM bundle.

  4. [...] Источник: Dr.Nic blog. [...]

  5. Dr Nic Tue, 27 May 2008 10:26:10 UTC

    Latest version of bundle now uses https for private repos.

  6. A Fresh Cup » Blog Archive » Double Shot #216 Tue, 27 May 2008 20:32:40 UTC

    [...] GitHub and TextMate Unite - Another TextMate bundle from Dr. Nic. [...]

  7. Andrew Dupont Wed, 28 May 2008 02:59:57 UTC

    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.

  8. Dr Nic Wed, 28 May 2008 07:26:02 UTC

    @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.

  9. Dr Nic Wed, 28 May 2008 08:51:19 UTC
  10. PhilGeek Wed, 28 May 2008 11:56:29 UTC

    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?

  11. Dr Nic Wed, 28 May 2008 13:01:05 UTC

    @phil - I did apply a fix for the http/https issue the other day. Have you added + committed + pushed the file?

  12. Dr Nic Wed, 28 May 2008 15:58:37 UTC

    @andrew - feature added; thx for the idea.

  13. Francesco Mondora Sat, 31 May 2008 16:31:14 UTC

    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

Comments