[TxMt] Re: parameter to jump from error console in Firefox to referenced line of code in TM

Rob McBroom mailinglist0 at skurfer.com
Sat Jan 8 22:56:52 UTC 2011

On Jan 8, 2011, at 1:33 PM, Steve wrote:

> The viewsourcewith addon asks for the path and parameter. I've given
> my path as /usr/local/bin/mate and the parameter as $f . This indeed
> opens TM, but it does not take me to the line referenced in the error
> console. Suggestions would be appreciated. Thanx.

It looks like the `mate` command has a `-l` option, so `mate -l 25 source.html` would take you to line 25. You just have to figure out how to pass the line number, I guess.

Also, take a look at this part of the manual. 


You can have a line number in the URL. If it requires a Terminal command and can't use a URL directly, the `open` command should do the right thing. (i.e. `open 'txmt://open/?url=source.txt&line=25'`)

Rob McBroom

More information about the textmate mailing list