Politics, Programming and Possibilities
20 Feb
Suggestions and features just keep bursting from everywhere.
In this release, we’ve added Inline Partial Editing, bound to the same command as the Create Partial from Selection feature (command-option-p). Now you can edit your partials inline and save them out again to their appropriate files. Thanks to Kyle Maxwell for the suggestion.
There’s also an experimental “generate” command that will generate scaffolding, controllers, models and more right from within TextMate. Bound to command-option-g by default.
Works in many different contexts. Checks the current line first to see if there are any “render”, “redirect_to” statements or javascript / stylesheet files. Goes to the file if found. Otherwise, if you’re inside a controller’s action, it will take you to the view. If you’re inside a view, it will take you to the corresponding controller action. Also works for ActionMailer models with their corresponding views.
When inside a view file, select some HTML or erb code that you would like to turn in to a partial. Hit ‘command-option-p’ and a dialog asking you for the name of your new partial will pop up. Name your partial and hit ‘ok’. The selected text will be replaced by a “render :partial” erb fragment and the text will be saved in the newly named partial file.
When inside a view file that contains one or more “render :partial” statements, hit “command-option-p” without any selection and your partials will be brought in to the current file to be edited. Once done with them, hit command-option-p again and they will be saved to their appropriate locations and removed.
Hit ‘command-option-g’ from any file and you will be taken through 2 or 3 simple dialogs to help you generate scaffolds, models, migrations, controllers and more.
Lists all mentions of TODO, CHANGED, and FIXME within your project. Lets you toggle the three categories on and off.
6 Responses for "syncPeople on Rails 0.8"
Totally awesome
Sheer genius. Thanks for sharing!
Thank you!
Can you put CocoaDialog command into a double quotes?
text_mate.rb file, line 64:
dialog_command = “\”#{cocoa_dialog_command}\” #{command} #{options_list.join(’ ‘)}”
Since I have all my bundles installed in ~/Library/Application Support/TextMate, running Rails generator command gives me an error.
Amazing! Thanks.
dude. these are awesome.
I installed the bundle, but the intelligent Go To File isn’t working. I can see the bundle in the show bundles list. To enhanced ToDo list works correctly, but when I hit keypad enter on my mac, it just inserts a blank line.
The only thing I think is different on my mac is that my TextMate application is in a folder within /Applications/TextMate/TextMate. I stuck the app inside a folder so I could put manual with it also. When I did the install, I opened up that folder and dragged the bundle onto the actual TextMate application.
Any ideas? I really like the idea of intelligent go to file and would love to get it working.