Politics, Programming and Possibilities
25 Feb
After talking with my partner, Greg Narain, as well as Allan Odgaard, the creator of TextMate, we (syncPEOPLE) have decided to release our Rails bundle under the MIT license so that it can nest itself nicely within its new home, the TextMate Subversion Bundle Repository. If you have subversion set up with TextMate, update your bundles and you’ll get it all.
What this means for the rest of us is that all of these great features we’ve been madly developing are going to be available as the default Rails bundle when the next version of TextMate is released. Thanks to all who’ve contributed to this work already. Keep it up!
There are some major key binding changes in this release, due to my own slow but steady understanding of TextMate conventions and the evolving complexity of making this intuitive. Bundle keys are normally bound to the ctrl-shift combination, not the command-option combination. Therefore, in following with this convention, the new bundle uses the following bindings for its commands:
The Enhanced TODO List has been moved to the TODO bundle itself, so everyone (Rails and non-Rails folks alike) will benefit from it. It will be updated soon.
In order to create the “Show Go To File Choices” command and its list of choices, I created some new language scoping rules in TextMate that may prove interesting in the future. Basically, there are 6 new scopes available for Rails bundle creators to play with:
What this amounts to is that you can bind certain snippets, commands or macros to specific scopes within the rails project. For example, suppose you want to create a macro that adds scaffolding code to your controller. With the new scopes, you can bind your command to meta.rails.controller and rest assured that you won’t accidentally add scaffold actions to your model. In addition, this new scoping allows you to bind multiple commands with the same key binding to a single scope to create a pop-up menu with choices. Try ⌘⌥⇧↓ to see this latter benefit in action.
After some discussion, we (Allan and I) decided to remove the keypad enter binding and replace it with the ⌘⌥↓ key combination. There were a number of reasons for doing this:
With that said, however, there’s certainly nothing stopping you from re-binding the enter key to your Rails bundle. If it works for you that way, great!
I’ve put a lot of work in to making this release a much more robust, refactored release. There are some really handy classes that have been created just for TextMate (included in the bundle) that I’d like to mention for the benefit of other bundle makers:
If you don’t use the subversion repository, download the new Rails bundle as a Disk Image here.
7 Responses for "syncPEOPLE on Rails Bundle Merges with Built-in Rails Bundle, Reaches RC 1.0"
I have tried the last two releases and the Intelligent Goto function does nothing in either one. I have tried other key mappings to no avail. Have you had others that this has not worked for?
Hi
Cool bundle I love it but I have an issue with your key bindings because I use a French keyboard and the \ key is done by typing shift-alt-/ !! (And I don’t even talk about | or ~ :))
I cannot use the ⌃⇧\: Call Generator Script, it doesn’t work.
Is it possible for me to change the shortcut?
Thanks
Seb
Before downloading in haste, it is worth noting that this bundle has been updated.
Search the blog or check http://inquirylabs.com/downloads/
I’m running a default install of TextMate and it appears that there are path issues as none of the commands work and selecting text in a view and attempting to use the create partial key combo results in:
/bin/bash: line 2: create_partial_from_selection.rb: command not found
Any thoughts?
Hi Sebastien,
You should be able to change the key bindings quite easily by going to Automation/Commands/Edit Commands and then going to the Rails bundle. Is this what you were trying to achieve?
Mike, move into a view, select some text and then try the create partial from command (⌃⇧”) - see if your selection is replaced with the same error that I rec’d. That is:
/bin/bash: line 2: create_partial_from_selection.rb: command not found
I just got my first Mac today (only because of TextMate and SOR
…could you please tell me what key this is in the ‘call generator’ scripts that looks like a capital T?
Leave a reply