Home Download Buy Blog Forum Support

Add auto-refresh capability for buffers

Add auto-refresh capability for buffers

Postby willi297 on Tue Jan 12, 2010 7:14 pm

It would be really nice to enable auto-refresh on a particular buffer, if I am monitoring a log file. Obviously, this should be off by default, but it would be nice to be able to enable this on a given buffer. Also, adding an application command so that I could create a key binding and access it from plugins would be very handy as well.
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA

Re: Add auto-refresh capability for buffers

Postby jps on Wed Jan 13, 2010 12:37 pm

It's there as the 'autoReloadChanged' option. You can set it for the current buffer by doing:

Code: Select all
view.options().set('autoReloadChanged', True)


in the console. You can also bind this to a key by using something along the lines of:

Code: Select all
<binding key="f10" command="toggle autoReloadChanged"/>
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Add auto-refresh capability for buffers

Postby willi297 on Thu Jan 14, 2010 7:59 pm

Thanks! Will do...
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA

Re: Add auto-refresh capability for buffers

Postby willi297 on Thu Jan 14, 2010 8:08 pm

This kinda works, but only refreshed when focus changes to the buffer being monitored. I would like to have a log file open and have it continuously update at some interval. Once per second would be cool.
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA

Re: Add auto-refresh capability for buffers

Postby Dan Phillips on Mon Jan 18, 2010 1:25 am

willi297, it might be worthwhile to investigate dedicated log viewers. Log viewing is possibly sufficiently different to text editing for it warrant a specialized tool.

The best log viewer that I found after evaluating about five of them was BareTailPro from Bare Metal Software for $35:

http://www.baremetalsoft.com/baretailpro/index.php

I'm not connected with them in any way. I just like their product.
Dan Phillips
 
Posts: 11
Joined: Wed Oct 21, 2009 2:37 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests