

The bundles still have yet to make their way to the official TextMate repository, but the Groovy site is now hosting a page on TextMate integration.Īt long last, the bundles have found a new home at the official TextMate repository. I modified the bundle links above to point to the locally hosted copy of the bundles, until such time that these bundles make their way to the official TextMate repository. Stay tuned for more updates as they come in. Or, if you just want to execute the currently selected text, hit Command + Option + R to run just the selection. Presenting.the gratuitous Hello World example. Once you've installed the latest bundle, open any Groovy file in TextMate, and hit Command + R to run the file in your editor.
#Textmate for mac install#
Then, just grab the current version of the bundle, install it, and you're ready to rock. To take advantage of these new features, first make sure you have Groovy installed and that your GROOVY_HOME variable is set. Work in progress, indeed! Graeme has just added the ability to run Groovy scripts and Groovy classes from within TextMate. If you have a chance to try it out, shoot a quick note to the Groovy mailing list with your thoughts (or post a comment here, and I'll be happy to pass it along).
#Textmate for mac code#
In addition to more code snippets, future releases will likely provide the ability to execute a Groovy unit test directly from within TextMate, execute a Groovy script inside TextMate, etc. Graeme points out that these bundles are a work in progress. $ ls -l ~/Library/Application\ Support/TextMate/Bundles/ĭrwxr-xr-x 5 jason jason 170 Nov 1 17:33 Grails.tmbundleĭrwxr-xr-x 6 jason jason 204 Nov 1 17:33 Groovy.tmbundleįor more examples of what you'll get from these bundles, be sure to check out the initial release notes.Īnd, there's still more to come.


How exactly do I do that in Groovy?"īundles -> Groovy -> Iteration -> Files & Streams -> eachLine I need to iterate over each line in a file. While these bundles are certainly useful for anyone working with Groovy and Grails in TextMate, they should be especially helpful for Groovy and Grails newbies. These bundles offer a whole host of code snippets for common Groovy and Grails tasks, and as you might expect, the bundles provide some handy syntax highlighting as well.
#Textmate for mac for mac os#
Graeme Rocher has assembled Groovy and Grails bundles for the splendid (and increasingly popular) TextMate editor for Mac OS X.
