TextMate Groovy & Grails Bundles

View: New views
9 Messages — Rating Filter:   Alert me  

TextMate Groovy & Grails Bundles

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: TextMate Groovy & Grails Bundles

by backspaces :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Boy, and on all saints' day!  Thanks a bundle .. er .. bunch!  As much as I grudgingly use Eclipse, I do find myself using TM for more of my daily stuff, especially quick python hacks.  Now time to add Groovy to TM.

graemer wrote:
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

[grails-user] Re: TextMate Groovy & Grails Bundles

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Updated the TextMate bundle. You can now use APPLE+R to execute the
current groovy script or selecting some code and doing APPLE+ALT+R
will execute the snippet. There are more GSP snippets and groovy
snippets too.

Cheers
Graeme

On 11/2/06, backspaces <owen@...> wrote:

>
> Boy, and on all saints' day!  Thanks a bundle .. er .. bunch!  As much as I
> grudgingly use Eclipse, I do find myself using TM for more of my daily
> stuff, especially quick python hacks.  Now time to add Groovy to TM.
>
>
> graemer wrote:
> >
> > 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
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/TextMate-Groovy---Grails-Bundles-tf2555468.html#a7136882
> Sent from the groovy - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


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

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

    http://xircles.codehaus.org/manage_email


Re: TextMate Groovy & Grails Bundles

by Paul King :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is the following error expected when trying to update from svn:

Error: Can't check path 'C:\Downloads\groovy.codehaus.org\svnroot\ide\groovy-textmate\Grails.tmbundle\Snippets\<g:form controller="__" action="__"> .tmSnippet': The filename, directory name, or volume label syntax is incorrect.    

I guess my humble windows operating system is getting confused.
Is the special symbols in the name a requirement? I am not
actually trying to download/use it (still holding off buying
a Mac at present), just update the repository for other changes.

Cheers, Paul.

Graeme Rocher wrote:
> Updated the TextMate bundle. You can now use APPLE+R to execute the
> current groovy script or selecting some code and doing APPLE+ALT+R
> will execute the snippet. There are more GSP snippets and groovy
> snippets too.
>
> Cheers
> Graeme

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

    http://xircles.codehaus.org/manage_email


Re: TextMate Groovy & Grails Bundles

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

TextMate is Mac OS X only

Graeme

On 11/3/06, Paul King <paulk@...> wrote:

> Is the following error expected when trying to update from svn:
>
> Error: Can't check path 'C:\Downloads\groovy.codehaus.org\svnroot\ide\groovy-textmate\Grails.tmbundle\Snippets\<g:form controller="__" action="__"> .tmSnippet': The filename, directory name, or volume label syntax is incorrect.
>
> I guess my humble windows operating system is getting confused.
> Is the special symbols in the name a requirement? I am not
> actually trying to download/use it (still holding off buying
> a Mac at present), just update the repository for other changes.
>
> Cheers, Paul.
>
> Graeme Rocher wrote:
> > Updated the TextMate bundle. You can now use APPLE+R to execute the
> > current groovy script or selecting some code and doing APPLE+ALT+R
> > will execute the snippet. There are more GSP snippets and groovy
> > snippets too.
> >
> > Cheers
> > Graeme
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


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

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

    http://xircles.codehaus.org/manage_email


Re: TextMate Groovy & Grails Bundles

by glaforge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


The problem is not there: it means ppl can't check out properly the Grails code source anymore because of files with weird characters in their names.

graemer wrote:
TextMate is Mac OS X only

Graeme

On 11/3/06, Paul King <paulk@asert.com.au> wrote:
> Is the following error expected when trying to update from svn:
>
> Error: Can't check path 'C:\Downloads\groovy.codehaus.org\svnroot\ide\groovy-textmate\Grails.tmbundle\Snippets\<g:form controller="__" action="__"> .tmSnippet': The filename, directory name, or volume label syntax is incorrect.
>
> I guess my humble windows operating system is getting confused.
> Is the special symbols in the name a requirement? I am not
> actually trying to download/use it (still holding off buying
> a Mac at present), just update the repository for other changes.
>
> Cheers, Paul.
>
> Graeme Rocher wrote:
> > Updated the TextMate bundle. You can now use APPLE+R to execute the
> > current groovy script or selecting some code and doing APPLE+ALT+R
> > will execute the snippet. There are more GSP snippets and groovy
> > snippets too.
> >

Re: TextMate Groovy & Grails Bundles

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is not in the Grails code source it is in groovy/ide/groovy-textmate

If you don't check that out you'll be find it is outside everything else

On 11/3/06, glaforge <glaforge@...> wrote:

>
>
> The problem is not there: it means ppl can't check out properly the Grails
> code source anymore because of files with weird characters in their names.
>
>
> graemer wrote:
> >
> > TextMate is Mac OS X only
> >
> > Graeme
> >
> > On 11/3/06, Paul King <paulk@...> wrote:
> >> Is the following error expected when trying to update from svn:
> >>
> >> Error: Can't check path
> >> 'C:\Downloads\groovy.codehaus.org\svnroot\ide\groovy-textmate\Grails.tmbundle\Snippets\<g:form
> >> controller="__" action="__"> .tmSnippet': The filename, directory name,
> >> or volume label syntax is incorrect.
> >>
> >> I guess my humble windows operating system is getting confused.
> >> Is the special symbols in the name a requirement? I am not
> >> actually trying to download/use it (still holding off buying
> >> a Mac at present), just update the repository for other changes.
> >>
> >> Cheers, Paul.
> >>
> >> Graeme Rocher wrote:
> >> > Updated the TextMate bundle. You can now use APPLE+R to execute the
> >> > current groovy script or selecting some code and doing APPLE+ALT+R
> >> > will execute the snippet. There are more GSP snippets and groovy
> >> > snippets too.
> >> >
> >
>
> --
> View this message in context: http://www.nabble.com/TextMate-Groovy---Grails-Bundles-tf2555468.html#a7157837
> Sent from the groovy - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


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

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

    http://xircles.codehaus.org/manage_email


Re: TextMate Groovy & Grails Bundles

by Paul King :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


So, you can't do an update or checkout on groovy/ide anymore?

Graeme Rocher wrote:

> It is not in the Grails code source it is in groovy/ide/groovy-textmate
>
> If you don't check that out you'll be find it is outside everything else
>
> On 11/3/06, glaforge <glaforge@...> wrote:
>>
>>
>> The problem is not there: it means ppl can't check out properly the
>> Grails
>> code source anymore because of files with weird characters in their
>> names.
>>
>>
>> graemer wrote:
>> >
>> > TextMate is Mac OS X only
>> >
>> > Graeme
>> >
>> > On 11/3/06, Paul King <paulk@...> wrote:
>> >> Is the following error expected when trying to update from svn:
>> >>
>> >> Error: Can't check path
>> >>
>> 'C:\Downloads\groovy.codehaus.org\svnroot\ide\groovy-textmate\Grails.tmbundle\Snippets\<g:form
>>
>> >> controller="__" action="__"> .tmSnippet': The filename, directory
>> name,
>> >> or volume label syntax is incorrect.
>> >>
>> >> I guess my humble windows operating system is getting confused.
>> >> Is the special symbols in the name a requirement? I am not
>> >> actually trying to download/use it (still holding off buying
>> >> a Mac at present), just update the repository for other changes.
>> >>
>> >> Cheers, Paul.
>> >>
>> >> Graeme Rocher wrote:
>> >> > Updated the TextMate bundle. You can now use APPLE+R to execute the
>> >> > current groovy script or selecting some code and doing APPLE+ALT+R
>> >> > will execute the snippet. There are more GSP snippets and groovy
>> >> > snippets too.
>> >> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/TextMate-Groovy---Grails-Bundles-tf2555468.html#a7157837 
>>
>> Sent from the groovy - user mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>
>


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

    http://xircles.codehaus.org/manage_email


Re: TextMate Groovy & Grails Bundles

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well you can check out the ones that are specific to you ide, like
groovy/ide/groovyj or groovy/ide/GroovyEclipse etc.

Otherwise if its a problem we can move it to its own directory maybe
groovy/textmate

Graeme

On 11/3/06, Paul King <paulk@...> wrote:

>
> So, you can't do an update or checkout on groovy/ide anymore?
>
> Graeme Rocher wrote:
> > It is not in the Grails code source it is in groovy/ide/groovy-textmate
> >
> > If you don't check that out you'll be find it is outside everything else
> >
> > On 11/3/06, glaforge <glaforge@...> wrote:
> >>
> >>
> >> The problem is not there: it means ppl can't check out properly the
> >> Grails
> >> code source anymore because of files with weird characters in their
> >> names.
> >>
> >>
> >> graemer wrote:
> >> >
> >> > TextMate is Mac OS X only
> >> >
> >> > Graeme
> >> >
> >> > On 11/3/06, Paul King <paulk@...> wrote:
> >> >> Is the following error expected when trying to update from svn:
> >> >>
> >> >> Error: Can't check path
> >> >>
> >> 'C:\Downloads\groovy.codehaus.org\svnroot\ide\groovy-textmate\Grails.tmbundle\Snippets\<g:form
> >>
> >> >> controller="__" action="__"> .tmSnippet': The filename, directory
> >> name,
> >> >> or volume label syntax is incorrect.
> >> >>
> >> >> I guess my humble windows operating system is getting confused.
> >> >> Is the special symbols in the name a requirement? I am not
> >> >> actually trying to download/use it (still holding off buying
> >> >> a Mac at present), just update the repository for other changes.
> >> >>
> >> >> Cheers, Paul.
> >> >>
> >> >> Graeme Rocher wrote:
> >> >> > Updated the TextMate bundle. You can now use APPLE+R to execute the
> >> >> > current groovy script or selecting some code and doing APPLE+ALT+R
> >> >> > will execute the snippet. There are more GSP snippets and groovy
> >> >> > snippets too.
> >> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/TextMate-Groovy---Grails-Bundles-tf2555468.html#a7157837
> >>
> >> Sent from the groovy - user mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


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

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

    http://xircles.codehaus.org/manage_email

LightInTheBox - Buy quality products at wholesale price!