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 564983 - File saver dialog: better name than 'Unsaved Document 1'
File saver dialog: better name than 'Unsaved Document 1'
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: file loading and saving
2.24.x
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-18 11:12 UTC by Ben F-W
Modified: 2015-11-02 12:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Change default document title to "Untitled Document" (1.22 KB, patch)
2015-08-26 09:16 UTC, Lars Karlitski
committed Details | Review

Description Ben F-W 2008-12-18 11:12:00 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
Comment 1 Ben F-W 2008-12-18 18:49:42 UTC
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
Comment 2 Ben F-W 2008-12-18 19:32:47 UTC
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.
Comment 3 Angel Abad 2010-03-01 21:44:08 UTC
Hi, this patch at ubuntu launchpad changes "Unsaved Document" for "Untitled Docuemnt"

http://launchpadlibrarian.net/36699646/gedit_2.29.3-0ubuntu2.debdiff

Thanks!
Comment 4 Sindhu S 2014-01-10 17:42:03 UTC
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.
Comment 5 James 2014-05-04 06:06:39 UTC
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?
Comment 6 Sébastien Wilmet 2015-04-14 13:19:59 UTC
In the file saver dialog, the filename should maybe be empty for unsaved documents, so that people are forced to choose a filename.
Comment 7 Lars Karlitski 2015-08-26 09:14:45 UTC
(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.
Comment 8 Lars Karlitski 2015-08-26 09:16:59 UTC
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.
Comment 9 Sébastien Wilmet 2015-08-29 10:16:37 UTC
"Untitled Document" is indeed a better solution.
Comment 10 Paolo Borelli 2015-08-29 10:57:58 UTC
Review of attachment 310008 [details] [review]:

Let's get this in. You will need to send a mail for the string change
Comment 11 Sébastien Wilmet 2015-09-05 12:25:31 UTC
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.
Comment 12 Sébastien Wilmet 2015-10-18 10:50:02 UTC
Attachment 310008 [details] pushed as 05d0ce1 - Change default document title to "Untitled Document"