Suggestions and features just keep bursting from everywhere.

Summary of Release

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.

Details

  • keypad ‘enter’: Intelligent Go To File

    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.

  • command-option-p (with selection): Create Partial from Selection

    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.

  • command-option-p (without selection): Inline Partial Edit Mode

    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.

  • command-option-g: Rails Generator

    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.

  • ctrl-shift-t: Enhanced TODO List

    Lists all mentions of TODO, CHANGED, and FIXME within your project. Lets you toggle the three categories on and off.


Download the syncPeople on Rails 0.8 Disk Image