[TxMt] Re: [TM2] DIALOG2 replace input via HTML Javascript TextMate.system()

Hans-Jörg Bibiko bibiko at eva.mpg.de
Sun Sep 28 11:03:55 UTC 2014


On 28 Sep 2014, at 11:19, Hans-Jörg Bibiko <bibiko at eva.mpg.de> wrote:

> TextMate.system('[[ -z $TM_SELECTED_TEXT ]] && "$TM_MATE" -l"$TM_LINE_NUMBER:1-$TM_LINE_NUMBER:1000000"', null);

Hmm, but this leads to another issue: How to get the actual _current_ line number since TM_QUERY or TM_LINE_NUMBER rely on the bash starting environment?

And while the HTML output window is open the user can change the caret.

Yet another idea?

Best,
Hans





More information about the textmate mailing list