# Ruby  on Rails & Textmate

**URL:** <https://discuss.rubyonrails.org/t/ruby-on-rails-textmate/16295>\
**Category:** rubyonrails-talk\
**Created:** [July 28, 2007, 4:04am UTC](https://discuss.rubyonrails.org/t/ruby-on-rails-textmate/16295 "2007-07-28T04:04:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faisal\_N\_Jawdat](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@Faisal\_N\_Jawdat](https://discuss.rubyonrails.org/u/Faisal_N_Jawdat)\
**Post date:** [July 28, 2007, 4:04am UTC](https://discuss.rubyonrails.org/t/ruby-on-rails-textmate/16295/1 "2007-07-28T04:04:56Z")

</div>

While we're on the subject of Rails and Textmate, does anyone have a bundle recipe to trigger a 'rake test' without having to pick 'test' from the menu of allowed tasks? Really I'd like to be able to hit a single keyboard shortcut and have it happen.

Failing that I'll eventually get around to writing my own, but why debug the newly reinvented wheel.

-faisal

---

<div class="post-metadata">

**Author:** ![Phlip](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Phlip](https://discuss.rubyonrails.org/u/Phlip)\
**Post date:** [July 28, 2007, 5:27pm UTC](https://discuss.rubyonrails.org/t/ruby-on-rails-textmate/16295/2 "2007-07-28T17:27:13Z")

</div>

Faisal N Jawdat wrote:

> While we're on the subject of Rails and Textmate, does anyone have a bundle recipe to trigger a 'rake test' without having to pick 'test' from the menu of allowed tasks? Really I'd like to be able to hit a single keyboard shortcut and have it happen.

We did this trick:

- declare a keystroke, F5, that does nothing - set the keystroke to "save all files" first - run trigger.rb in a shell next to the editor (on another monitor) - trigger.rb detects when any file gets saved - the trigger doesn't run test:recent. It uses test:svn\_modified

[http://groups.google.com/group/rubyonrails-talk/msg/91d25ae319db21b2](http://groups.google.com/group/rubyonrails-talk/msg/91d25ae319db21b2)

> Failing that I'll eventually get around to writing my own, but why debug the newly reinvented wheel.

Ask, and ye shall be blogged!

[http://phlip.eblogs.com/2007/01/02/growl-driven-development/](http://phlip.eblogs.com/2007/01/02/growl-driven-development/)
