gedit recent file

Asked by martino

I'm using Ubuntu 8.04 with a Gedit ver. 2.22.3
The "File" menu lists, among other things, the last 5 files opened.
This is a nice feature, but what can i do in order to have more than 5 files
listed in the "File" menu ?
Thank You and Best Regards

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Steven Danna
Solved:
Last query:
Last reply:
Revision history for this message
Best Steven Danna (ssd7) said :
#1

Hi,

I'm unsure if there is an option to do this within the gedit GUI, however, the following will work:

1) Open a terminal (Applications-Accessories->Terminal)
2) Run the following command:

gconftool-2 --set --type=int /apps/gedit-2/preferences/ui/recents/max_recents 10

3) Start gedit and ensure the list is the length you desire. (If gedit was open when you ran this command, you will have to close it and open it again.

You can change the "10" to however long you want the list to be. There is a GUI tool to change gconf options called gconf-editor and you can also use that to change this preference.

Revision history for this message
Sam_ (and-sam) said :
#2
Revision history for this message
martino (lrinetti-libero) said :
#3

gconftool works very well as you described.
Thank You

Revision history for this message
martino (lrinetti-libero) said :
#4

Hi Steven,
i have just a question.
My gedit now works fine with 10 entry in the last recent files.
If i open gconf-editor and see the key:
/apps/gedit-2/preferences/ui/recents/max_recents
it is still "5"
Why it is not 10 ?

Best Regards

Revision history for this message
Felix (felix-akkermans) said :
#5

I can set it to 10, but still gEdit only displays 5. I'm running gEdit 3.4.1, and gconf-editor 3.0.1. It seems that gEdit isn't using the GConf database?