File reload on change scrolls text to the top. How to fix it

General and specific configuration/INI settings

File reload on change scrolls text to the top. How to fix it

Postby V@no » Sun Oct 17, 2004 7:25 pm

Hi!
I'm trying figure out the reason and why it doesnt happend to all the files, that when the text file is big and you have scrolled down to see its end, and then when its been changed by another application and UE asks if I want to reload it, on clicking "yes" it re-loads the changed file and scrolls up to the beginning. It is very annoying when you have to always scroll down to see the changes, for example log files write new information at the end of the file, leaving the current content untouched.
I'd say ok, that how UE works in general, but no, for some unknown reason it doesn't automaticaly scroll up on some files... I cannot say what type of files or anything else at the moment (will try trace it when I can).

So, does anyone know why this happening? Is there a way to prevent UE automaticaly scroll up to the beginning of the file?

Thanks
User avatar
V@no
Basic User
Basic User
 
Posts: 20
Joined: Thu Jul 22, 2004 11:00 pm

Re: File reload on change scrolls text to the top

Postby Mofi » Sun Jul 23, 2006 8:33 am

UltraEdit automatically sets the cursor back to top of the file after reload when the cursor was at bottom (end) of the file before reload. If you have for example the last line of the file terminated with a line termination and you have set the cursor at start of the last line (Ctrl+End and Up Arrow), the cursor will not move after reload.

Since v11.00 there are 2 new options especially for viewing log files at Configuration - File Handling - File Change Detection:

- Poll for file changes at forced intervals in seconds
- When a file marked for polling is detected as changed scroll to the last line in the file (Use for tailing log files)

After enabling these settings as explained in help you have to open the files and mark the files you want polled by clicking on View - File Change Polling. This menu command is only for the active file. So if you want multiple files polled, make the next file active and click again on this menu item. See help of UltraEdit/UEStudio about the polling commands in the View menu and the polling settings.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Configuration/INI Settings