[Lister:] option to auto-reload the changed text files?

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Valery_Kondakoff
Junior Member
Junior Member
Posts: 92
Joined: 2004-06-27, 15:24 UTC

[Lister:] option to auto-reload the changed text files?

Post by *Valery_Kondakoff »

Hi!

I'm really missing an option in Lister to auto-reload the text file if it is changed. This can be really useful to monitor the log-files in real-time (smth like logtail Unix tool).

I know, there is a LogTail TC plugin, but I think it is a good idea to have such a functionality implemented in Lister...

What do you think?

Thank you!
CU
VK
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Support+.
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Support it, as long as it asks before reloading the file.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
nsp
Power Member
Power Member
Posts: 1817
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

wanderer wrote:Support it, as long as it asks before reloading the file.
Basic tail feature is nice but not really useful if you do not have filters to highlight lines remove some.... a nice java app for this is smart-tail

I Support AutoReload option in the text lister with Yes,No, on Demand....
vanuatoo
Junior Member
Junior Member
Posts: 2
Joined: 2006-12-03, 21:14 UTC

Re: [Lister:] option to auto-reload the changed text files?

Post by *vanuatoo »

Valery_Kondakoff wrote:Hi!

I'm really missing an option in Lister to auto-reload the text file if it is changed. This can be really useful to monitor the log-files in real-time (smth like logtail Unix tool).

I know, there is a LogTail TC plugin, but I think it is a good idea to have such a functionality implemented in Lister...

What do you think?

Thank you!
I could not find LogTail plugin. :roll:
Can anyone post a link?
Total Commander - Wish I had it on my solaris installation.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

Lister: automatic reload on focus, automatic move to tail?

Post by *serjayes »

It would be convenient to have a setting for Lister (which I'd keep always on) to allow automatic reload (performed now with F2) of the text file viewed in the lister each time the given view gets the focus again.

The second setting for Lister (auto move to tail, which I'd always keep on) would function the following way: if the user moved to the end of the file, lister remembers that it's "at the end", so when F2 event occurs, after the new file is reloaded, the lister automatically moves to the end of the reloaded file.

Reason: at the moment, it often happens to me that I open some file, then some program generates a new version or adds something to the end. With these features, the view would adjust "automatically". Very convenient for observing log files, for example.

Third nice feature would be "refresh on change", and that would, for example, once in a second or two, check the attributes of the viewed file and if they are changed, the file is reloaded the same way as already described. This would allow viewing text files like logs "live".

I believe all the infrastructure already exists, so that a small amount of code would get big difference.
(user licence #64081)
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Support++ to all 3 suggestions.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

I second that.
User avatar
Motorocker
Member
Member
Posts: 105
Joined: 2006-07-19, 10:52 UTC
Location: Perm, Russia
Contact:

Post by *Motorocker »

Support all.
Also it needs small code.
Graphics Converter – images conversion
KillOK – Cease to press OK!
NSCopy – copy unreadable
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Up. :)
Sometimes it is really useful to have possibility to follow actual line of log files. FAR has such feature in its base viewer, UV also has it. But Lister is small and quick, so I prefer to use it. And, as Motorocker said, this things doesn't require hard work and/or large code. IMHO, refresh rate and auto-reload on focus may be specified in INI, but follow tail and auto-reload items should be added somewhere in menu, e.g. after 'Show text cursor' item.
alexd
Junior Member
Junior Member
Posts: 4
Joined: 2022-10-23, 05:35 UTC

Internal Viewer: option to "auto reload" (e.g. monitor logfiles) ?

Post by *alexd »

Would it be possible to have an option for the internal viewer to automatically load changes, for instance to be able to monitor logfiles as they change in realtime?
Atm, the only option is to close and open the viewer repeatedly.
JOUBE
Power Member
Power Member
Posts: 1484
Joined: 2004-07-08, 08:58 UTC

Re: Internal Viewer: option to "auto reload" (e.g. monitor logfiles) ?

Post by *JOUBE »

alexd wrote: 2023-07-13, 09:03 UTC Atm, the only option is to close and open the viewer repeatedly.
For this (like gnu tail -f ) use tools like baretail under windows. It is specialized to and perfect for this. (e.g. supports colors)

http://www.baremetalsoft.com/baretail/
User avatar
white
Power Member
Power Member
Posts: 4633
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Internal Viewer: option to "auto reload" (e.g. monitor logfiles) ?

Post by *white »

I support the suggestion to have an auto-reload feature for Lister.
alexd wrote: 2023-07-13, 09:03 UTC Atm, the only option is to close and open the viewer repeatedly.
Is F2 (Reload file) not working for you?

Moderator message from: white » 2023-07-13, 09:51 UTC

Merged 3 threads about the same suggestion into 1.
User avatar
AntonyD
Power Member
Power Member
Posts: 1250
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [Lister:] option to auto-reload the changed text files?

Post by *AntonyD »

Is F2 (Reload file) not working for you?
you know - sometimes it does NOT ((( without any obvious reason.
#146217 personal license
Post Reply