samhuri.net


By Sami J. Samhuri

SJ's Rails Bundle 0.2 for TextMate

Everything that you've seen posted on my blog is now available in one bundle. Snippets for Rails database migrations and assertions are all included in this bundle.

There are 2 macros for class-end and def-end blocks, bound to ⌃C and ⌃D respectively. Type the class or method definition, except for class or def, and then type the keyboard shortcut and the rest is filled in for you.

I use an underscore to denote the position of the cursor in the following example:

method(arg1, arg2_)

Typing ⌃D at this point results in this code:

def method(arg1, arg2)
  _
end

There is a list of the snippets in Features.rtf, which is included in the disk image. Of course you can also browse them in the Snippets Editor built into TextMate.

Without further ado, here is the bundle:

Download Download SJ's Rails Bundle 0.2

This is a work in progress, so any feedback you have is very helpful in making the next release better.