Difference between revisions of "GNOME/Gedit"

From ArchWiki
Jump to: navigation, search
(added spell checking installation hint)
(Save backup versions of edited files: Add out-of-date template, for missing preference option under GNOME 3.26?)
 
(31 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
[[Category:GNOME]]
 
[[Category:GNOME]]
 
[[Category:Text editors]]
 
[[Category:Text editors]]
{{stub}}
+
[[ja:Gedit]]
 +
[[de:Gedit]]
 +
== Installing ==
  
==Installing==
+
[[Install]] the {{Pkg|gedit}} package.
[[pacman|Install]] {{Pkg|gedit}}, available in the [[Official Repositories]].
 
  
===Spell Checking===
+
== Configuration ==
In order to use spell checking in gedit [[pacman|Install]] the according language, e.g., {{Pkg|aspell-en}}.
+
 
 +
=== 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 {{ic|file1}} the backup copy would have the name {{ic|file1~}}. Backup files are hidden by default.
 +
 
 +
{{out of date|For me, the only option under the text editor menu (left to activities) is ''Quit'' (GNOME 3.26)?}}
 +
 
 +
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.''
 +
 
 +
== Spell Checking ==
 +
 
 +
In order to use spell checking in gedit you need an [[aspell]] dictionary.
 +
 
 +
== Plugins ==
  
==Plugins==
 
 
Some plugins are available in the {{pkg|gedit-plugins}} package.
 
Some plugins are available in the {{pkg|gedit-plugins}} package.
  
===Adding and making custom plugins===
+
=== Adding and making custom plugins ===
A plugin that shows errors while you type for languages like C, C++, etc, available in the [[AUR]]: {{aur|gedit-code-assistance-git}}.
+
 
 +
A plugin that shows errors while you type for languages like C, C++, etc, is available as {{pkg|gedit-code-assistance}}.
 +
 
 +
== See also ==
 +
 
 +
* [https://wiki.gnome.org/Apps/Gedit Apps/Gedit - GNOME Wiki!]

Latest revision as of 22:16, 25 February 2018

Installing

Install the gedit package.

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.

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: For me, the only option under the text editor menu (left to activities) is Quit (GNOME 3.26)? (Discuss in Talk:GNOME/Gedit#)

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.

Spell Checking

In order to use spell checking in gedit you need an aspell dictionary.

Plugins

Some plugins are available in the gedit-plugins package.

Adding and making custom plugins

A plugin that shows errors while you type for languages like C, C++, etc, is available as gedit-code-assistance.

See also