About

Nodeta is a software development company that focuses on web software. We employ a highly agile and effective process. We have worked both on light independent projects and in the environment of large global enterprises.

Our Products

Flowdock

Streamline your team's tasks, feeds and communication. Organize with tags. Sign up for beta!


APIdock

APIdock provides a rich and usable interface for searching, perusing and improving the documentation of projects that are included in the app.

Categories
Archives
-->

APIdock in Textmate

Mikael Roos February 23rd, 2009

First came Vim, and next Gaizka added APIdock integration to Emacs. Now perhaps the biggest favorite of most Ruby and Rails developers, myself included: Textmate! Courtesy of one of Nodeta’s own, Ville Lautanala aka Lautis, you can get the Textmate bundles with APIdock goodness for Ruby and Rails from github with just a couple of simple git commands:

% mkdir -p ~/Library/Application\ Support/Textmate/Bundles
% cd ~/Library/Application\ Support/Textmate/Bundles
% git clone git://github.com/lautis/ruby-on-rails-tmbundle.git "Ruby on Rails.tmbundle"
% git clone git://github.com/lautis/ruby-tmbundle.git "Ruby.tmbundle"
% osascript -e 'tell app "TextMate" to reload bundles'

Now, the keyboard shortcut

Control+h

gets you the page for the current word from APIdock.

Trackbacks

  1. Turulcsirip - Peter Szinek

8 Comments

  1. Kevin

    Nice one.

  2. Couldn’t these have been implemented as a separate bundle instead of as a replacement for the two existing bundles?

  3. I agree with Bob. TextMate will allow you to make 1 new bundle that adds APIdock for both Ruby and Rails and can co-exist with the existing Ruby and Ruby-on-Rails bundles.

  4. Navjeet Singh

    Thanks for the post. The Ruby bundle at git://github.com/lautis/ruby-tmbundle.git “Ruby.tmbundle” currently breaks my Rubymate. I am unable to run a script with Cmd+R and get the following error:

    Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor (LoadError)

  5. ville

    @Navjeet: That’s a compatibility issue with the Ruby bundle, the development version doesn’t work with “stable” version of TextMate. Using the cutting edge version should work (or you could just take the documentation command code and use it with the old bundle)

    @Bob: Calling it a replacement may be a bit exaggerating, but considering the compatibility problems it might have been a good idea.

  6. Nate Sutton

    It’s not an exaggeration at all. I’m using drnic’s rails and ruby tmbundles and replacing them with yours (which may or may not have the same enhancements as his) just isn’t a good choice for me. I think as a community we should rally around drnic’s bundles as replacements for the decrepit rails/ruby bundles included in textmate and just add extra functionality like this in an external bundle.

  7. @Bob Aman, et al: For your installing pleasure, one Textmate Bundle that adds APIdock support to both Ruby and Rails. Check the link below for details & installation instructions. Anyone want to fork & add rspec support?

    http://github.com/metavida/apidock-tmbundle/tree/master

  8. Bill Osman

    I agree with Nate Sutton.

Leave a Reply