GNOME Bugzilla – Bug 383834
Fails to recognise changed files
Last modified: 2009-08-22 10:42:10 UTC
Maybe gedit should use a checksum instead of the filename to recognise the files when placing the cursor in the last known position. Here is my situation: I tend to use other programs to change a specific file, and use gedit to open them. gedit's feature mentioned above becomes an annoyance when it doesn't actually notice that the file contents have changed, since it only checks the filename, and then proceeds to going to some index which is obviously wrong. Other information:
maybe we should add an mtime attribute to the metadata?
thinking again about this, I decided to not implement this: - using many programs to edit the same text file is not common case - if I use different commands I may as well be doing different things and so I want the cursor in the position where I last used gedit (silly example: I edit a glade file manually with gedit to fix a string, then with glade to add a vbox, when I reopen with gedit the cursor placed at the string is ok) - in the worse case having the cursor at the "wrong" position is not a big problem