samhuri.net/public/posts/2006/02/sjs-rails-bundle-0_2-for-textmate.md
Sami Samhuri b34ddbb600 fix code blocks on narrow screens, change post extensions
- Code blocks can't be in tables or they extend past the body width.
  Workaround by using floated line numbers instead.

- Fix typocode CSS

- Change post extension from .html.md to .md. This makes URLs without
  extensions work with harp server again. This change works now that
  article titles never contain periods.
2014-03-03 22:47:21 -08:00

1.7 KiB

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.