« Return to Thread: TextMate Groovy & Grails Bundles

TextMate Groovy & Grails Bundles

by graemer :: Rate this Message:

Reply to Author | View in Thread

For those on Mac OS X who use the fantastic TextMate editor I have
created a Groovy bundle that lives at
http://svn.groovy.codehaus.org/groovy/trunk/groovy/ide/groovy-textmate

Just an overview of what it does:

- type "to" and hit TAB for type conversion by method call
- type "as" and hit TAB for type conversion by coercion
- type "with" and hit TAB for i/o stuff
- typing ea, eawi, eal, eaf, eab, eam and hitting TAB do things like
each, eachWithIndex, eachFile and so on
- type "static" and hit TAB for various options for statics
- type "cla" and hit TAB for class definition templates
- typing ":" and hitting TAB creates key/value hash pair
- Use ^ H to access JavaDoc help given you have them installed
- Use ^ ENTER to create new methods

It is almost as good as code completion ;-)

It is still a WIP though, especially the Grails stuff. For Groovy I need to add:

- Execute a unit test
- Execute a script
- Execute a script from selection

There are probably more, but TextMate makes it amazingly easy

--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: TextMate Groovy & Grails Bundles