If you are using TextMate (OS X) or E Text Editor (Windows) then you’ll be dead keen to know there is a TextMate bundle for Merb, and another one for Datamapper.
Currently, you can access the bundles via git:
cd "~/Library/Application Support/TextMate/Bundles" git clone git://github.com/drnic/datamapper-tmbundle.git Datamapper.tmbundle git clone git://github.com/drnic/merb-tmbundle.git Merb.tmbundle
Now â€œReload Bundlesâ€ or restart TextMate.
You can now select from three Merb syntax/scopes. Press Shift+Alt+Cmd+M to see the options (below)
- If you select Merb (Datamapper) you will have access to the Merb bundle AND the Datamapper bundle.
- If you select Merb (ActiveRecord) you have access to the Merb bundle AND the Ruby on Rails bundle.
- If you select Merb (Sequel) then nothing special happens as there isnâ€™t a Sequel bundle yet. Want to create one?
Currently there is no separation in the Rails bundle for ActiveRecord and non-ActiveRecord snippets and commands, so if you use Merb (ActiveRecord) there will be some snippets + commands that you donâ€™t want from Rails. In future, there may be more separation to help the Merb bundle. Also, TextMate 2 may help this cause.
As always, to learn what snippets are available at any given cursor position, use Ctrl+Cmd+T.
If you have new snippets for any of the bundles, I suggest forking the git repositories, pushing up the changes to github and sending Pull Requests to me (drnic).
Sponsored by Engine Yard
The initial development of this bundle was sponsored by Engine Yard because they care.
If you want to learn everything about the new Ruby on Rails bundle for TextMate and daily life with TextMate (short cuts, editing bundles) then I highly recommend the new TextMate for Rails 2 Peepcode:
This recommendation comes from inside information on the quality of the Peepcode… it was written by me, and incorporates the vocal skills of the operatic Geoffrey Grosenbach.
- Packaging TextMate bundles in OS X DMGs Last week Engine Yard released a CLI for their Engine...
- Validate and Save your Ruby in TextMate – with secret Rubinus superpowers In some TextMate bundles, if you save a file it...
- TextMate easter egg: find bundle commands by key combo I’ve dreamed of the ability to ask TextMate “what frigging...
- My attempt at sake task management I’ve used sake intermittently in my workflow. It competes...
- Using Ruby within TextMate snippets and commands I didn’t know you could run Ruby within TextMate snippets....