Debugging TextMate shortcuts

131 views
Skip to first unread message

Cyrille

unread,
May 19, 2009, 8:07:20 PM5/19/09
to Ruby on Rails: TextMate
Hi guys,

I'm using the wonderful and extraordinary Dr Nic's RoR bundle.

One shortcut that I really need is: Go To Alternate File (Cmd Alt Down
Arrow) to go from a controller to its test file and back.

Unfortunately, it doesn't work for me...

So my next question is: how do you debug TextMate shortcuts? For
instance, how do you check that a command associated with a key
shortcut is actually called?

How do you check the scope is correct?

How do you check if a key shortcut is associated with multiple
commands?

Any help would be appreciated.

Cheers

Cyrille

Dr Nic Williams

unread,
May 19, 2009, 9:41:32 PM5/19/09
to rubyonrail...@googlegroups.com
Yeah it might be good to have a generic testunit/shoulda/testspec/rspec controller -> test/spec -> controller toggle.

Currently you have the "Go to xxx" commands which are Shift+Cmd+Alt+Down from nearly any Rails file to any other related Rails file.

RSpec bundle has Shift+Ctrl+Down.

Perhaps we could have a version of that for Controller -> Test/Spec -> Controller.

To learn what commands/snippets map to key shortcuts read: http://drnicwilliams.com/2008/10/09/textmate-easter-egg-find-bundle-commands-by-key-combo/

For developing Bundle commands, 99% of the code isn't in the Command text field. Rather, all the code is in Support/lib + /bin and tests in Support/test.

Have a look in there and see what you can make of it. Ping any questions to the mailing list.

Cheers
Nic
--
Dr Nic Williams
Mocra - Premier iPhone and Ruby on Rails Consultants
w - http://mocra.com
twitter - @drnic
skype - nicwilliams
e - dr...@mocra.com
p - +61 412 002 126 or +61 7 3102 3237

Reply all
Reply to author
Forward
0 new messages