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
931
questions
124
votes
7
answers
55k
views
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 ...
61
votes
2
answers
117k
views
Start a new process without blocking the terminal
Is it possible to do this? For example if I run "gedit tifatul.txt" via the command line, my terminal becomes blocked and I can't enter other command in this terminal before I quit gedit. Can I start ...
60
votes
3
answers
41k
views
How to stop Gedit, Gvim, Vim, Nano from adding End-of-File newline char?
Sometimes I want the last line of a text file to be a simple string of text with no newline character appended: ...eg. to concatenate another file to it.
Several editors automatically modify my ...
59
votes
11
answers
71k
views
Where are gedit's preferences?
This is incredibly weird. I don't see "preferences" in any of my gedit menus. I'm running Version 3.8.3. All I want to do is show line numbers, but I can't do that without preferences.
Where the heck ...
51
votes
3
answers
249k
views
Getting the default text editor used in system
I have used select-editor and I note that I am using /usr/bin/nano. Is this the default text editor I am using?
When I open text files, It opens with gedit
What command in terminal must be specified ...
48
votes
3
answers
11k
views
Selected line's contents aren't readable in GEdit while using dark theme on Ubuntu 20.04
I am unable to see what I type in the Gedit editor using dark theme.
This is due to the default setting of highlighting the current line.
46
votes
5
answers
23k
views
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 - ...
45
votes
7
answers
48k
views
How do I install a plugin for gEdit v3?
I just installed the ubuntu 11.10, and I want to install a plugin for gEdit.
I unpacked the plugin to the following folder: ~/.gnome2/gedit/plugins but in the gedit doesn't show up the plugin.
44
votes
7
answers
71k
views
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 ...
41
votes
3
answers
45k
views
How to zoom in and out of text in Gedit?
I am using Ubuntu 11.10. This seems to be an easy question, yet I cannot find an answer anywhere.
On pre-unity Ubuntu, I was using gedit-zoom plugin to zoom text in editor window in/out, either with ...
39
votes
2
answers
79k
views
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 |...
37
votes
5
answers
12k
views
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 ...
37
votes
5
answers
31k
views
How to stop gedit (and other programs) from outputting GTK warnings and the like in my terminal?
I am running the awesome window manager on trusty after having upgraded from raring. My desktop environment intentionally does not have all the Gnome / Freedesktop daemons running — I don't want them.
...
35
votes
4
answers
25k
views
Is there Split Pane support in Gedit?
I know some other text editors like Notepad++ enable split pane to edit to files side by side. Is there any way I can add this functionality to Gedit?
34
votes
6
answers
21k
views
Custom keyboard shortcuts in gedit
Since I spend a lot of time on my laptop, I've gotten used to using keyboard shortcuts for everything. I want to be able to switch from tab to tab of opened documents in gedit by pressing Ctrl+Tab ...
31
votes
6
answers
34k
views
Make gedit embedded terminal colours the same as the default terminal
I've just updated to 11.10 and now my embedded terminal in gedit does not match my default terminal. I hate looking at a white and black terminal. Does anyone know how to make the embedded terminal ...
31
votes
4
answers
18k
views
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.
29
votes
3
answers
10k
views
How do I move to a new tab in gedit using the keyboard?
If I have multiple tabs open, how do I move from one to another?
(Ubuntu 11.10; gedit 3.2.1)
29
votes
4
answers
101k
views
Enable line numbers in gedit
I can't find how to enable the line numbers, current line highlight, and other goodness in 13.10.
27
votes
4
answers
15k
views
Can I set a default syntax highlighting in Gedit?
Until you save a document in gedit, syntax highlighting is turned off. There are obviously good reasons for this -- people might get confused if certain words were randomly showing up in different ...
26
votes
6
answers
23k
views
When creating a new text file, should I add a .txt extension to its name?
When I create a new document aimed at containing only plain text, I am not obliged by Ubuntu to add a .txt extension to its name. It works indeed very well: gedit opens it without problem, ...
25
votes
5
answers
50k
views
Can I change gedit's background color without changing to another theme?
I like ambiance but i find it a little too hard on the eyes to have to edit files on a pure white background, like gedit's.
Is there any way to modify my theme to make gedit's background color darker?...
25
votes
2
answers
38k
views
How do I add a syntax highlighter format to Gedit?
How can I add in the regular expressions for an additional syntax language?
24
votes
3
answers
90k
views
Using grep to search texts with single quote?
I am using gedit text editor with embedded terminal in ubuntu 12.04. I'm trying to search for some text using grep. I want to search for this line of code
'type' => 'select'
I tried:
grep -r '\'...
23
votes
4
answers
148k
views
"Set document metadata failed" when I run sudo gedit
I have upgraded 14.04 to 16.04 . Now I am trying to open the gedit from terminal by passing the command:
sudo gedit /some/where/file.txt
but it is throwing an error stating that:
(gedit:2090): ...
22
votes
3
answers
28k
views
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?
21
votes
6
answers
94k
views
Can't open Gedit as root
When I run sudo gedit /path/to/some/random/file I get the following error
** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax --...
21
votes
3
answers
82k
views
Gtk-WARNING : Calling Inhibit failed [duplicate]
I was trying to use gedit, when I came across the following problem:
myPC@TM77:~$ sudo gedit /etc/pm/config.d/config
(gedit:12512): IBUS-WARNING **: The owner of /home/myPC/.config/ibus/bus is not ...
20
votes
10
answers
50k
views
True column-mode (block-selection and editing) text editor solution?
In windows, I used to use a text editor called crimson editor which featured the best column-mode editing support I have yet to use.
When enabled via a simple Alt-C shortcut, selections could be made ...
20
votes
8
answers
2k
views
How can I make 'man' more gui friendly?
When I type man bash it shows the info in the terminal itself.
How do I tell "man" to open up the info in gedit instead? Is this possible?
20
votes
7
answers
29k
views
Is there an easier or more 'correct' way to open gedit as root?
I have ubuntu 12.04 running in a virtual machine on virtual box. Its existence is mainly as a 'toy' to play about with Ubuntu, so for this reason I wanted the GUI (is that what 'Dash' is in ubuntu 12....
19
votes
2
answers
2k
views
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 ...
19
votes
1
answer
21k
views
Unindent selected lines in gedit
I'm using the Gedit text editor.
For a single line, we can simply press Backspace to remove the indentation on that particular line.
How can I select several lines and unindent them all?
18
votes
3
answers
76k
views
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
18
votes
2
answers
5k
views
gedit modelines – What are they? How do they work?
There is a gedit plugin called Modelines and the plugin is described as
Emacs, Kate and Vim-style modelines support for gedit.
What are modelines? And how do they work in gedit?
17
votes
4
answers
63k
views
Why do I get IBUS-Warning on running the sudo gedit command?
Whenever I try to run a sudo gedit command as instructed in Step 4 of this answer, my terminal puts out:
(gedit:7549): IBUS-WARNING **: The owner of /home/jared/.config/ibus/bus is not root!
How ...
16
votes
2
answers
13k
views
Font rendering in gedit is smooth, but not smooth in NetBeans
See the attached image. The window in the background is gedit with the fonts rendered smooth. The window on top is NetBeans with not-so-smooth font rendering (not anti-aliased, I think). Both editors ...
16
votes
2
answers
7k
views
Is there a hotkey to switch between tabs in Gedit? [duplicate]
Is there a hotkey to switch between tabs in Gedit? Ctrl+Tab and Ctrl+PageUp are not working. I'm using Ubuntu 14.04.
16
votes
3
answers
4k
views
How do I downgrade Gedit to a previous (3.10.4) Version in Ubuntu 16.04 LTS
As the title already says: I have some plug-ins which don't run with gedit 3.18.3 which is shipped with Ubuntu 16.04 LTS.
How can I downgrade to the version 3.10.4 which was used in Ubuntu 14.04 LTS ...
16
votes
5
answers
5k
views
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 ...
16
votes
6
answers
50k
views
Saving a file in gedit prints a warning in terminal
I recently installed a GRUB theme from gnome-look.org on Ubuntu 20.04 LTS (my PC is Windows 10 dual-boot with Ubuntu). To install the theme successfully, the file at /etc/default/grub needs to be ...
16
votes
2
answers
20k
views
Is it a good idea to install gedit in Lubuntu?
I've been a Ubuntu user for years now, but since 11.10 will come with GNOME3/Unity, neither of which I like, I've decided to switch to Lubuntu, which uses LXDE as the desktop environment.
The only ...
16
votes
2
answers
5k
views
Gedit: Search next match ... usability
Searching the next match with gedit makes me crazy.
I press Ctrl+F
The search input box opens
I enter foo
There is a match for foo. Nice
Up to now everything is sane
I want to search the next match (...
16
votes
2
answers
14k
views
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.
16
votes
1
answer
19k
views
How to select a column or block of text in gedit 3.28.1?
Is it possible to select a column or block of text in Gedit 3.28.1?
The following image is with Kate 17.12.3 but shows what I want:
16
votes
4
answers
21k
views
Menu bar missing in gedit
I don't know what I did in gedit (and nautilus), but menu bar gone away. Here a screenshot. Actually, menu bar changed but I like the "classic" way, with "File, Edit...". What I did wrong and how I ...
16
votes
3
answers
3k
views
gedit last line obscured by status bar
When I maximize gedit the last line of the text editor is obscured by the status bar at the bottom of the screen. This occurs even if I scroll to the very bottom of the document.
Say the document is ...
16
votes
2
answers
4k
views
How can I make all applications use Nemo's file selection dialog instead of Nautilus?
I switched to nemo a long time ago, because I think it's superior to nautilus in many ways. One small thing bothers me however:
Whenever I want to open a document in gedit (or evince, but I'm sure ...
15
votes
3
answers
29k
views
Opening a non-utf8 encoded text file
I sometimes need to open text files that are encoded in EUC-KR.
man gedit gives:
--encoding
Set the character encoding to be used for opening the files
listed on the ...
14
votes
6
answers
12k
views
How to write superscript characters in gedit? [duplicate]
In gedit, how can I write x^2 without using ^? Where 2 will be the superscript of x.