GitHub and TextMate Unite

Posted by Dr Nic on May 26, 2008 and blessed with 15 comments

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?

Related posts:

  1. Migrating project websites to github pages with sake tasks, new websites with jekyll_generator Its almost Christmas time and that means presents. It...
  2. TextMate easter egg: find bundle commands by key combo I’ve dreamed of the ability to ask TextMate “what frigging...
  3. Using Ruby within TextMate snippets and commands I didn’t know you could run Ruby within TextMate snippets....
  4. How to yell at people with GitHub from TextMate Sometimes when you are perusing code you ask the question:...
  5. TextMate bundles for Merb If you are using TextMate (OS X) or E Text...
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

  14. Peter C Mon, 29 Dec 2008 05:04:43 UTC

    @Dr Nic: what happened to this bundle? When I go to http://github.com/drnic/github-tmbundle/tree/master I get “Nothing to see here yet. Move along.”

  15. Dr Nic Mon, 29 Dec 2008 07:47:55 UTC

    @PeterC – this is fixed now. I was notified by Github over the weekend that the repo had become corrupt internally but its now fixed with a simple “git push origin master” Yay for DSCM.

Comments