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 309941 - Rename doesn't support Undo (Ctrl+Z)
Rename doesn't support Undo (Ctrl+Z)
Status: RESOLVED DUPLICATE of bug 167501
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.11.x
Other Linux
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-10 09:03 UTC by Reinout van Schouwen
Modified: 2005-11-29 18:49 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Reinout van Schouwen 2005-07-10 09:03:47 UTC
Distribution/Version: mandriva

Select a file and press F2 to rename it. Type a few letters and press Ctrl+Z.

Expected results: changes are undone.
Actual results: nothing happens.
Comment 1 Sebastien Bacher 2005-07-10 10:30:37 UTC
Why should ctrl-Z do that? Is that specified by the HIG or something?
Comment 2 Reinout van Schouwen 2005-07-10 10:35:57 UTC
In fact, it is:
http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html#shortcuts

But the main reason for this bug is that any other gtk textfield supports Ctrl+Z
undo, so it would be consistent to have it.
Comment 3 Sebastien Bacher 2005-07-10 10:46:40 UTC
ctrl-Z/shift-ctrl-Z is an undo/redo, it's useful for a text editor but is that
required for a rename?
Comment 4 Sebastien Bacher 2005-07-10 10:48:50 UTC
note that gtk widgets don't do this (you can try with gtk-demo) but apps like
gedit have undo/redo functionnalities
Comment 5 Reinout van Schouwen 2005-07-10 11:05:11 UTC
and so do textfields in mozilla, though they may be different from plain gtk ones. 

Is this functionality required for a rename? No. Is it convenient and
consistent? Yes! That's the reason for filing this bug.
Comment 6 Sebastien Bacher 2005-07-10 12:36:09 UTC
mozilla has an undo/redo function. I'm changing the bug settings but not
changhing the bug to NEW, can a maintainer status on the point of a undo/redo
for a simple file renaming?
Comment 7 Christian Neumair 2005-07-10 20:29:14 UTC

*** This bug has been marked as a duplicate of 167501 ***
Comment 8 Matthew Paul Thomas (mpt) 2005-11-29 18:49:20 UTC
The ability to undo (and redo) typing would replace the normal contents of 
the "Undo" and "Redo" items in the "Edit" menu, but otherwise I don't think 
this isn't a duplicate of bug 167501. Once a rename was finished, it would 
be a single operation for the purposes of undo/redo ("Undo Rename of 
“Foo”"). But while the name field was being edited, individual typing, 
cutting, pasting, and deleting actions should be separate for the purposes 
of undo/redo, just like they are in any other text field.