Ubuntu 14.04 uses gedit 3.10.4-0ubuntu4
that shows tab by default. That has changed in Ubuntu 16.04, which now uses gedit 3.18.3-0ubuntu4
according to this package search result.
How to show tabs
The gedit FAQ has noted two commands, which are relevant to change the appearance of tabs. The useful one is the latter, which uses range
option to show all possible values for the particular key show-tabs-mode
. The following shows the output by default in Ubuntu 16.04.
$ gsettings get org.gnome.gedit.preferences.ui show-tabs-mode
'auto'
$ gsettings range org.gnome.gedit.preferences.ui show-tabs-mode
enum
'never'
'auto'
'always'
To make gedit always show the tabs, run the following command.
gsettings set org.gnome.gedit.preferences.ui show-tabs-mode 'always'
The result will be applied immediately and gedit will now always show the tabs (the old default).
Upper half screenshot: gedit is showing the initial tab "Untitled Document 1"
Lower half screenshot: the global menu is shown in the window's title bar and set visibility to "Always displayed". The file name is similarly shown in the tab.
When it happened
The changes of hiding the initial tab in gedit most likely had occurred in target release 3.12, as part of UI redesign, according to the roadmap. Below are two related commits found on the web.
From GNOME Git Repository, this commit dated 11 Jan 2014 has noted:
When notebook "show-tabs" becomes true, check the show-tabs-mode
When exiting fullscreen, we go back to show tabs, but we should
check show-tabs-mode and see if they should really be shown.
From GNOME Mail Archive, this commit dated 16 Feb 2014 has noted:
[gedit] Change the name of the tabs-mode setting
/* window state keys */
...
-#define GEDIT_SETTINGS_SHOW_TABS_MODE "notebook-show-tabs-mode"
+#define GEDIT_SETTINGS_SHOW_TABS_MODE "show-tabs-mode"
...
The difference
For gedit in Ubuntu 16.04, the initial tab is extended from end to end. One may not notice the tab is already shown after running the gsettings set
command, since the entire tab bar has been covered by the tab itself. Unfortunately, there is no apparent option to change this behaviour.
Note that the key show-tabs-mode
is available for gedit in Ubuntu 16.04 (and possibly newer releases), but not applicable to gedit in earlier releases of Ubuntu. To find out the relevant keys of the schema, run the following command.
gsettings list-keys org.gnome.gedit.preferences.ui
In Ubuntu 14.04, the available keys are:
bottom-panel-visible
max-recents
statusbar-visible
notebook-show-tabs-mode <-- old key
side-panel-visible
toolbar-visible
In Ubuntu 16.04, the available keys are:
bottom-panel-visible
max-recents
statusbar-visible
show-tabs-mode <-- new key
side-panel-visible
toolbar-visible
The difference of key can be confirmed in the commit dated 16 Feb 2014 as mentioned above.