[TxMt] Method/function list?

Allan Odgaard allan at macromates.com
Tue Nov 30 18:53:43 UTC 2004

On Nov 30, 2004, at 19:19, Jeroen van der Ham wrote:

>>> - Pattern: ^(\d+):(.*)$
>>>  [this parses out the grep output so we can identify the line part]
>>> - Format: $2
>>> - Line:1
>> I didn't really understand the Line / Format boxes in the command 
>> dialog.
> The Pattern is a regular expression (see TM help) and the () define 
> two groups, which can be addressed with $1 (the \d+ match) and $2 (the 
> .* match). The Format box then allows you to format the output such as 
> you like, in this case it only shows the last group.
> And what the Line box does I'm not sure.

The File register/Line/Column boxes tell which group (i.e. regex 
capture register) contain the filename, line number and column number. 
In this case there is only the line number (so current file is 

The documentation for this is in Help -> Commands.

More information about the textmate mailing list