After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 467306 - Detect when a file is renamed
Detect when a file is renamed
Status: RESOLVED OBSOLETE
Product: gedit
Classification: Applications
Component: general
3.2.x
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 393034 712606 746272 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-08-16 13:20 UTC by Sebastien Bacher
Modified: 2020-11-24 09:57 UTC
See Also:
GNOME target: ---
GNOME version: 3.1/3.2


Attachments
Allow user to save or don't save the file in case of file moved, renamed or deleted. (5.22 KB, patch)
2014-09-29 14:57 UTC, Sagar Ghuge
none Details | Review

Description Sebastien Bacher 2007-08-16 13:20:12 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/132788

"Binary package hint: gedit

When you edit a file in gedit and the file is renamed, gedit doesn't notice that the file on disk has disappeared. Instead, when trying to save a file that has been renamed, a warning should appear, similar to the yellow warning bar that appears when a file content has been modified by another program.

Steps to reproduce the problem:

1. Open a new file in gedit. Save it to ~/foobar
2. Rename the file ~/foobar to ~/foobar.new
3. Modify the file inside gedit (this step can be omitted)
4. Press the Save button

A new file ~/foobar is silently written. No indication is given to the user that the file was not there when saving.

Expected behavior:

Show a warning that the file has been renamed, moved, or deleted. Ask the user whether she really wants to save the file under the old name (to the old location). Better yet, determine what exactly happened to the file (was it renamed, moved, or deleted). If the file has been moved or renamed, suggest to save the file in the new location or under the new name, respectively.

ProblemType: Bug
Architecture: i386
Date: Thu Aug 16 00:52:51 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gedit
Package: gedit 2.18.1-0ubuntu1
..."
Comment 1 Pavel Šefránek 2008-04-25 21:19:36 UTC
*** Bug 393034 has been marked as a duplicate of this bug. ***
Comment 2 André Klapper 2012-07-30 15:18:42 UTC
Still in 3.2
Comment 3 Sagar Ghuge 2014-09-29 14:57:35 UTC
Created attachment 287359 [details] [review]
Allow user to save or don't save the file in case of file moved, renamed or deleted.
Comment 4 Sébastien Wilmet 2014-10-28 11:50:26 UTC
*** Bug 712606 has been marked as a duplicate of this bug. ***
Comment 5 Sébastien Wilmet 2015-04-14 10:33:17 UTC
*** Bug 746272 has been marked as a duplicate of this bug. ***
Comment 6 Sébastien Wilmet 2020-11-24 09:57:09 UTC
Mass-closing of all gedit bugzilla tickets.

Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.