Tapatalk

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

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

413
Basic UserBasic User
413

    Oct 18, 2004#1

    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

    6,685587
    Grand MasterGrand Master
    6,685587

      Re: File reload on change scrolls text to the top

      Jul 23, 2006#2

      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.
      Best regards from an UC/UE/UES for Windows user from Austria