linuxmint/xed

[ENH] Shorten "Unsaved document" to "New"

Opened this issue · 0 comments

 * Xed version: xed - Version 3.2.8
 * Distribution: Mint 21.1

Issue
Shorten "Unsaved document" to "New" to match that of Notepad++ and reduce tab scrolling when keeping the Xed window small.

Steps to reproduce

  1. Open Xed
  2. Set the font used to Terminus TTF Medium 9
  3. Set the window so that only 80 columns are shown in the edit area.
  4. Open 3 new document tabs.

Expected behaviour
All tabs fit in window.

Other information
Notepad++ uses "New" instead of "Unsaved document" and you already have a "*" to indicate unsaved. Kinda redundant?

diff --git a/xed/xed-document.c b/xed/xed-document.c
index bc4250f..9a83a2f 100644
--- a/xed/xed-document.c
+++ b/xed/xed-document.c
@@ -970,7 +970,8 @@ xed_document_get_uri_for_display (XedDocument *doc)
 
     if (location == NULL)
     {
-        return g_strdup_printf (_("Unsaved Document %d"), priv->untitled_number);
+        /* New document */
+        return g_strdup_printf (_("New %d"), priv->untitled_number);
     }
     else
     {