GNOME Bugzilla – Bug 114215
check for modified file
Last modified: 2005-12-15 20:27:40 UTC
Package: gedit Severity: enhancement Version: 2.2.1 Synopsis: check for modified file Bugzilla-Product: gedit Bugzilla-Component: general Description: Description of Problem: I'm using gedit to edit some latex files, and we use cvs to manage them. It would be very nice if gedit would have some option to reload a file if it has changed on disk, because it happens otherwise that someone updates, saves in gedit, and commits thus commiting the old version. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-06-01 17:23 ------- Reassigning to the default owner of the component, maggi@athena.polito.it.
File->Revert should do what you are asking for or am I missing something?
The thing is that I'd like gedit to automatically recognise if a file was changed outside the editor, so that I won't have to remember to hit file->revert ;) If it recognises a file change, options depend on the file state 1) file is unchanged, then options are a) load new file b) don't load new file 2) if file is changed, options are a) load new file (KILL CHANGES) b) don't load new file (KILL CHANGES FROM OTHER PROGRAM) c) save my version with different name (to allow for diffing)
I agree, this and bug #143943 make gedit more painful than it need be when files are modified externally. This is exactly what gnome-vfs-monitor was made for.
*** Bug 145525 has been marked as a duplicate of this bug. ***
*** Bug 161709 has been marked as a duplicate of this bug. ***
*** Bug 314753 has been marked as a duplicate of this bug. ***
*** Bug 318333 has been marked as a duplicate of this bug. ***
gedit now is able to detect if a file has changed outside when saving. This bug requires a bit further than that: it requests active monitoring of the file. At the moment we decided to not go this way because of all the stability and reliability issues that current file monitoring implementations have. I am marking the bug as duplicate of 75861 (which deals with monitoring if a file is deleted) since, if/when the feature is implemented, it will deal both with monitoring deletion and external changes. I'll update the summary of bug 75861 accordingly. *** This bug has been marked as a duplicate of 75861 ***