Questions tagged [gedit]

gedit is a text editor for the GNOME desktop environment, not to be confused with GNOME Text Editor (gnome-text-editor) released with GNOME 42

gedit is the default text editor included with Ubuntu 22.04 and older versions of Ubuntu.

gedit is a general-purpose text editor.

The first goal of gedit is to be easy to use, with a simple interface by default. More advanced features are available by enabling plugins.

Source: https://wiki.gnome.org/Apps/Gedit

Ubuntu 22.10 ships with GNOME's new text editor app called, confusingly for this sentence, Text Editor. See

927 questions
124
votes
7 answers

Prevent gedit from creating files with the '~' (tilde) suffix

I have observed that in gedit if I edit a file, another file is created in the same directory (the one with the same filename and a tilde '~' suffix). The extra file remains even if I close gedit. I understand the need for a temp file (eg. in case…
46
votes
5 answers

Can I toggle word-wrapping on/off quickly in Gedit?

Depending on nature of the text, sometimes line wrapping is convenient, sometimes it is just confusing. And every time I need to switch this (pretty frequently) I have to do to View - Preferences - Enable text wrapping - Close - four clicks, not…
Ivan
  • 57,065
44
votes
7 answers

I can't use the terminal while gedit command is running

I recently installed 12.04. When I try to edit a file with gedit, I can't use the terminal until I close the editing file or I have to open a new terminal. But I think I didn't have this problem with 11.04, however I'm not sure. Is there anyway to…
Hossein Hosseinvand
  • 1,136
  • 2
  • 12
  • 12
39
votes
2 answers

gedit: search and replace with regular expressions

I want to replace this with gedit: 1299465 | 2003415 | 2015-09-06 05:35:34.59662+02 1299449 | 2009400 | 2015-09-06 05:35:32.301683+02 1299450 | 2008465 | 2015-09-06 05:35:32.451393+02 1299457 | 2015211 | 2015-09-06 05:35:33.451049+02 to…
guettli
  • 1,777
37
votes
5 answers

Why does gedit keep randomly opening new instances when opening files from nautilus?

Oh how I love Ubuntu and all its features, but this "bug" has been making me angry for so long and I've finally decided to ask for help here. I've assigned all .php files to be opened with gedit whenever I double-click them in nautilus. Now, the…
Frantisek
  • 8,898
31
votes
4 answers

Is there code folding for gedit?

Does anyone know about a way to get code folding in gedit? I've found this plugin in google code, but looks like dead and doesn't work with the latest gedit.
tutuca
  • 2,682
22
votes
3 answers

Why is 'gedit' going back to default tab sizes all the time?

Everytime I open a file in gedit, I have to change again the tab with from 8 to 4, as I prefer it. Is there any configuration file where I can make 4 the default tab width?
The Student
  • 11,926
19
votes
2 answers

Where does gedit store the last cursor position?

When you open an existing text file in gedit, the cursor starts at the position it was at when you last closed the file. So gedit presumably needs to store a list of inodes and offsets. I'm curious as to where this information is stored since I…
18
votes
3 answers

How to set encoding in gedit 3.2?

I can not display file coded with GBK. In gconf-editor of gnome 3.2 , I can not find encoding item of gedit . How to set it ? thanks
waterloo2005
  • 2,037
16
votes
5 answers

How to enter a tab character in gedit if replacement with spaces is set up?

Some programs require tab characters to work, e.g. make requires tabs in Makefiles. If gedit is configured to replace tabs with spaces, it's painful to change the settings every time or copy a character from another document. I'm using 3.10.4 on…
Kalle Richter
  • 6,180
  • 21
  • 70
  • 103
16
votes
2 answers

Adding languages to gedit spellchecker

It's all in the title. By language I mean human language that are not included in the default version (say dutch, german, spanish, ect...). I'm using gedit 3.4.x.
user2413
  • 14,337
14
votes
6 answers

How to write superscript characters in gedit?

In gedit, how can I write x^2 without using ^? Where 2 will be the superscript of x.
opu 웃
  • 2,137
  • 11
  • 29
  • 42
13
votes
3 answers

How to activate the Gedit terminal plugin?

I have the following packages installed: gedit gedit-common gedit-plugins In Ubuntu 12.04 with these packages installed all that was needed was to activate the terminal plugin and the press Ctrl+F9 to show the bottom panel. This isn't the case…
Luís de Sousa
  • 13,227
  • 26
  • 81
  • 128
13
votes
2 answers

Recommend regular expression plugin for gedit?

I would like to do some search and/or replace using regular expression in gedit. If I am correct, by default it is impossible to do this. So I was wondering if someone can recommend some nice plugin for this feature? How to install such plugin?…
Tim
  • 25,177
13
votes
1 answer

How can I change the color of the text in a terminal embedded in GEdit?

I am having trouble using the terminal in GEdit since the text-color is white on gray background. I can not find an option to change anything for that terminal anywhere. How can I change it? N.B. The python terminal is fine. Obligatory screenshot:
Ingo
  • 6,288
1
2 3
8 9