[TxMt] Manipulating $1

Paul McCann paul.mccann at adelaide.edu.au
Thu Aug 9 07:42:16 UTC 2007


Bob Ueland asked:

> However I would like setnumerator to be outputted as setNumerator.
>
> Is there a way to do this?

Sure: you just need to use a transformation in the replacement:  
something like

{
     int    ${1:var};
}

-(void)    set${1/(\w+)/\u$1/}:(int) n;

should do the trick. See section 7.7 of the TextMate manual.

Cheers,
Paul



More information about the textmate mailing list