< GNOME

GNOME/Gedit

gedit is a general-purpose text editor for GNOME.

Installation

Install the gedit package.

For additional features, install the gedit-plugins package.

Gedit can use multiple spell checking dictionaries, see Language checking.

Configuration

Do not end files with a new line

If you want to ensure that gedit does not end files with a newline, execute the following:

$ gsettings set org.gnome.gedit.preferences.editor ensure-trailing-newline false

Save backup versions of edited files

If desired, gedit can create a backup copy of an edited file - the contents of the backup file will be the same as the contents of the original file before the edit was made and then saved. The backup file's name will be the same as original file's name but suffixed with a ~ symbol. Hence, for the file called file1 the backup copy would have the name file1~. Backup files are hidden by default.

To enable this behaviour, access gedit's Preferences panel (for GNOME Shell users, this can be found in gedit's global menu). In the preferences panel, click on the Editor tab and tick the option Create a backup copy of files before saving.

Syntax highlighting

Gedit comes out-of-box with several syntax highlight thanks to gtksourceview4, so this section show exceptions.

PKGBUILD

Install gtksourceview4-pkgbuildAUR to have syntax highlight in PKGBUILDs.

gollark: Shame you can't trade with groups of villagers automatically.
gollark: Bedrock Edition is much better performing but not very moddable, overmonetized, and lacking in features.
gollark: <@!235768051683950593> TomatOS is patched now I think.
gollark: > >
gollark: > u

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.