[TxMt] Re: How to have the HTML window keep scrolling to show the last message added?

Gerd Knops gerti-textmate at bitart.com
Sun Jan 30 22:27:56 UTC 2011


On Jan 30, 2011, at 5:45 AM, Allan Odgaard wrote:

> On 27 Jan 2011, at 21:46, Gerd Knops wrote:
> 
>> [...]
>> I am now tracking log output from another program within a TextMate HTML window, but in that case it fails to scroll. What is the trick to achieve that?
> 
> It only performs this auto-scroll while the command is running.
> 
> I am guessing that your log output is generated via JS after the main command has terminated?
> 
> In this case, you would need to scroll the view yourself from JS, not sure how feasible this is though. Perhaps it would also be possible to have the main command not terminate before the generated log output has completed (like we do with the script runners, where output is not directly from the main command IIRC).
> 
The command keeps running. It is a perl script listening for log messages. Whenever a message is received it pretty-prints it and also converts part of them into txmt links so I can click on the log message and get to the place in code they refer to. Pretty similar to what Xcode build does. No JS, just perl 'print' output.

For some reason though the window does not auto-scroll to the most recent input.

Thanks

Gerd



More information about the textmate mailing list