PDA

View Full Version : HOWTO: GEDIT history list & line numbering



wallijonn
January 5th, 2005, 04:48 AM
TIPS & Tweaks:
---------------------------------------------------------------------------------------------------------
Gedit history / recent file number can be increased by

Applications -> System Tools -> Configuratoion Editor ->
apps -> gedit-2 -> preferences -> ui -> recents ->
click the right pane, either double click under the "name" or click once in the "value" box.

I have set mine to 30 just because it seems to scroll all the way down to the bottom of the screen. set according to your preference.

This should decrease your time searching for a file. Once you open Gedit, just hit "File" on the menu bar and scroll down to open.

---------------------------------------------------------------------------------------------------------

Another great option is to enable line numbering.
apps -> gedit-2 -> preferences -> editor -> line_numbers ->
Check (on) the right panel box.

This will ease the chore of counting lines when searching for an offending line of code.

For example, you've opened /var/log/mail.warn, mail.error and mail.log One of the error logs shows that Postfix could not start because there is an error at line 84 of the config file. You would then open the offending file and directly look at line 84.

If you work a lot with config files, like XF86Config-4, it soons becomes indispensible.

zenwhen
January 5th, 2005, 08:19 AM
The line numbering tip will come in handy. Thanks.

MestreLion
October 29th, 2010, 04:52 AM
2005 topic, but still useful! Thanks!

I wonder why even in 5 years the Recent File List size is still not editable using gEdit Preferences own GUI. At least Line Numbering is.

Mine is set to 15 now. SO much better!

MichiGreat
November 9th, 2010, 06:48 AM
2005 topic, but still useful! Thanks!

I wonder why even in 5 years the Recent File List size is still not editable using gEdit Preferences own GUI. At least Line Numbering is.

I totally agree! 5 is just a too low number, I guess the demand to change this value is quite high. Who uses only 5 files in a time period of - let's say - a week? Though this preference could be added as easy as inserting a label and a textbox in /usr/share/gedit-2/gedit-preferences-dialog.ui and do some programming to retrieve and change that setting - the rest has already been done. It would be nice to see that setting soonly. :-)

codeninja1
June 6th, 2012, 10:39 PM
I totally agree! 5 is just a too low number,... It would be nice to see that setting soonly. :-)

In Ubuntu 11 you can't even change the gnome setting to increase the "recents" list size.

carwe
July 30th, 2012, 11:10 AM
In Ubuntu 11 you can't even change the gnome setting to increase the "recents" list size.

You can't? Just tried the suggested solution and it didn't work - still only showing 5 in the recent list. Isn't there anything to do about this? This is a BIG annoyance! (Running Ubuntu 12.10.)

akvenugopal
August 21st, 2012, 06:50 PM
2004 topic. but still very usefull. I was searching for line numbering and came to this thread.. Thanks.

TIPS & Tweaks:
---------------------------------------------------------------------------------------------------------
Gedit history / recent file number can be increased by

Applications -> System Tools -> Configuratoion Editor ->
apps -> gedit-2 -> preferences -> ui -> recents ->
click the right pane, either double click under the "name" or click once in the "value" box.

I have set mine to 30 just because it seems to scroll all the way down to the bottom of the screen. set according to your preference.

This should decrease your time searching for a file. Once you open Gedit, just hit "File" on the menu bar and scroll down to open.

---------------------------------------------------------------------------------------------------------

Another great option is to enable line numbering.
apps -> gedit-2 -> preferences -> editor -> line_numbers ->
Check (on) the right panel box.

This will ease the chore of counting lines when searching for an offending line of code.

For example, you've opened /var/log/mail.warn, mail.error and mail.log One of the error logs shows that Postfix could not start because there is an error at line 84 of the config file. You would then open the offending file and directly look at line 84.

If you work a lot with config files, like XF86Config-4, it soons becomes indispensible.