Automatic reload?

Asked by Ken Sharp on 2011-04-18

http://old.nabble.com/Automatic-refresh-of-files-already-open-in-gedit-to8854781.html
According to this old thread gedit should have the ability to automatically update file as they are changed. This is possible in Notepad++ and is very useful.

However, it would appear that gedit does not have this option, or at least I cannot find it.

Is anyone aware of this function existing in gedit?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
2011-04-19
Last reply:
2011-04-19
Curtis Hovey (sinzui) said : #1

There is no setting. Gedit just does it. A ribbon will appear at the top of the document asking if you want to ignore the update to reload. Gedit checks for updates every time the document gains focus. You will not see the ribbon if the update happens while you are editing, but instead appear when you return to the document from another part of gedit, such as the side bar or another document.

Ken Sharp (kennybobs) said : #2

This is not an automatic reload. Notepad++ automatically loads the new lines. In gedit, hitting reload takes me back to the beginning of the file.

Someone told me Notepad++ and gedit share code. I don't know how true this is but they do have a similar feel.

Thomas Krüger (thkrueger) said : #3

the change notification does not work properly when you are opening an file on a remote file system or a file which is still buffered opened by an other process. Are you trying to watch a log file of something similar?

Ken Sharp (kennybobs) said : #4

I am watching files in /var/log but the result is the same when "messing" about in a git tree, of which nothing will have the files open, they are just replaced by newer/older versions (depending on what I'm doing in the tree).

Plus any logs I dump in /tmp while debugging. All result in the same thing: I have to click reload.

Thomas Krüger (thkrueger) said : #5

How about opening a terminal and run
tail -f log_file

Can you help with this problem?

Provide an answer of your own, or ask Ken Sharp for more information if necessary.

To post a message you must log in.