GNOME Bugzilla – Bug 564983
File saver dialog: better name than 'Unsaved Document 1'
Last modified: 2015-11-02 12:36:06 UTC
Currently, if I create a new document in gedit and click 'Save', the suggested name for the saved file is 'Unsaved Document 1'. If I accept that, open a new document and save it in the same folder, the suggested name is again 'Unsaved Document 1', and it asks if it should save over the existing file. Two issues with this: 1) Surely gedit should update the name on saving to 'Saved Document 1'? Makes sense for it to be called 'Unsaved' beforehand, but having a file on the filesystem that claims to be 'Unsaved' is just confusing when someone comes back to it. 2) Why add a '1' after the name of the document, unless it's going to increment to avoid a name clash? Surely when I save the second document, gedit should check if there's already a 'Saved Document 1' in the folder, and if so then suggest 'Saved Document 2' as the name? Other information: Using Ubuntu Intrepid, but I don't think this is distro-specific. Bugs that touch on this issue: http://bugzilla.gnome.org/show_bug.cgi?id=420202 https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/197067
On further research it looks like there's an existing bug at http://bugzilla.gnome.org/show_bug.cgi?id=530051, which was wontfixed by Paolo Borelli as 'discussed multiple times... with the HIG people'. It'd be interesting to see any record of this - seems a fairly obvious usability improvement - but I can't find any sign of the discussion. I'm not marking this bug as a duplicate because I think the second issue stands alone even if the first one is discarded. Can't find any similar bugs for that. Thanks, Ben
Looking at point 1 again, and at the risk of talking to myself... relevant section of HIG seems to be http://library.gnome.org/devel/hig-book/stable/windows-primary.html.en#primary-window-titles. Which doesn't specify what should happen to the name of a document when it's saved. So my suggestion doesn't seem to contradict the HIG.
Hi, this patch at ubuntu launchpad changes "Unsaved Document" for "Untitled Docuemnt" http://launchpadlibrarian.net/36699646/gedit_2.29.3-0ubuntu2.debdiff Thanks!
As of git master, when gedit opens with a new tab, the title of the document in this tab is set to "Unsaved Docoument 1", so if you press Ctrl + S, the name suggested is the same. Would it be OK to close this bug? as its filed against an old version of gedit and the bug report no longer holds good as the feature requested is now available in git master.
I notice when adding new documents, if the original document "Untitled Document 1" has not been saved and a new document is added, it properly increments to "Untitled Document 2". However if the original document is saved as "Untitled Document 1" and you add a new document it is also named "Untitled Document 1". Shouldn't gedit recognize if there is a file named "Untitled Document 1" in the current directory and increment the title of the new document?
In the file saver dialog, the filename should maybe be empty for unsaved documents, so that people are forced to choose a filename.
(In reply to Sébastien Wilmet from comment #6) > In the file saver dialog, the filename should maybe be empty for unsaved > documents, so that people are forced to choose a filename. This would go against convention. Many other applications use some form of "untitled" and suggest that title in the save dialog. Some examples from my system: Gimp: "Untitled.xcf" Inkscape: "New Document N" (but suggests "drawing.svg") LibreOffice: "Untitled N" Simple Scan: "Scanned Document" Firefox (yes!): "New Tab.xul" The only other application I could find that names untitled documents "Unsaved N" is glade. Gedit design mockups call it "Untitled Document" as well. We've been carrying a patch for this in Ubuntu since 2009, because having a file on disc that is called "Unsaved Document" is just weird.
Created attachment 310008 [details] [review] Change default document title to "Untitled Document" Since this is also the title that is suggested in the save dialog, the previous title "Unsaved Document" can lead to files on disc that are called "Unsaved Document", which is a misnomer.
"Untitled Document" is indeed a better solution.
Review of attachment 310008 [details] [review]: Let's get this in. You will need to send a mail for the string change
Comment on attachment 310008 [details] [review] Change default document title to "Untitled Document" We're now in string freeze. It's simpler to defer the patch for the next cycle. One more release doesn't make a big difference for such an old bug.
Attachment 310008 [details] pushed as 05d0ce1 - Change default document title to "Untitled Document"