Gedit 3.6.1, how to increase the number of recent files from its default of 5?
Ubuntu 12.10, gedit 3.6.1
This won't work:
gconftool-2 --type int --set /apps/gedit- /preferences/ui/recents/max_recents 30
Modifying this file as root won't work either:
cat /usr/share/glib-2.0/schemas/org.gnome.gedit.gschema.xml |grep rece -C 1
EDIT: there is nothing at gconf-editor
either.
Is it hard coded? In order to increase the number of recent files in gedit from its default of 5 will I need to find, "fix" and recompile gedit with the answer here?
Using the dconf-editor
, this value can be found in the schema under org.gnome.gedit.preferences.ui
. The value that you want to change is called max.recents
.
dconf-editor
can be installed from USC here:
or from a command line using: sudo apt-get install dconf-tools
There exists as well a possibility to achieve this without installing additional software:
dconf write /org/gnome/gedit/preferences/ui/max-recents "uint32 10"
Or:
gsettings set org.gnome.gedit.preferences.ui max-recents "uint32 10"
I tried the dconf-editor (see first answer on this page) on 32-bit Ubuntu 12.04 LTS and it worked without a hitch. The steps include:
- In terminal: sudo apt-get install dconf-tools
- In dash, find and launch dconf Editor
- In dconf Editor left pane, expand org -> gnome -> gedit -> preferences
- In dconf Editor left pane, select ui
- In dconf Editor right pane, double-click the value next to 'max-recents'
- Type new value (I entered 20).
- Press Enter
- Close Configuration Editor.