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
187
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 ...
44
votes
7
answers
70k
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 ...
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 ...
8
votes
1
answer
14k
views
Running GUI apps under WSL
I can't run GUI apps under WSL. First, I tried running Synaptic, but it showed this message:
Unable to init server: Could not connect: Connection refused
Failed to initialize GTK.
Probably you're ...
21
votes
6
answers
92k
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 --...
9
votes
2
answers
3k
views
What specific bad things happen when gedit is used with sudo?
I read this answer explaining that "sometimes" root can own something at /home/$USER directory.
Can anyone give an example how to prove it. Just give a test case when something really bad happens, ...
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.
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 ...
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 ...
33
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 ...
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 ...
59
votes
11
answers
70k
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 ...
13
votes
1
answer
6k
views
Gedit has a transparent background since upgrade to 16.10
Since I upgraded to from 16.04 to 16.10, gedit has strange new "feature": its background is totally transparent.
Where can this come from ?
Notice I'm using Unity and don't have any specific gnome ...
6
votes
3
answers
10k
views
How do I remove hidden backup files?
I have files ending in ~ in my home directory, and I want to delete them. How do I do that? How do I prevent this backup functionality?
5
votes
0
answers
4k
views
How do I run executable scripts in Nautilus rather than open them in Gedit text editor? [duplicate]
When I double-click on a script in Nautilus in order to run it, the script opens in my text editor with no option to do so.
Using Nautilus, how do I run executable text files and/or scripts?
4
votes
3
answers
1k
views
How can I sync my root gedit with my user gedit's preferences?
When I open a file with root gedit I'd like to have the same setup as my normal gedit. So theme, preferences, and addons.
Can I set up some sym links in the right spot to achieve this?
2
votes
2
answers
6k
views
Unable to launch gedit with sudo
While trying to follow these instructions, I encountered the following error while attempting what seems like a simple sudo edit operation:
$ sudo gedit /var/lib/dpkg/status
** (gedit:14898): ...
23
votes
4
answers
146k
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): ...
13
votes
3
answers
29k
views
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 ...
59
votes
3
answers
39k
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 ...
16
votes
2
answers
3k
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 ...
12
votes
6
answers
39k
views
How to paste text from Vim editor to browser?
I need to copy text from vim to web browser since I'm not able to use gedit as I'm opening an sql file. How do I get this done?
10
votes
2
answers
2k
views
Can there ever be any problem when using gedit to edit system files with 'sudo -H gedit'?
I am relatively new to Ubuntu, I noticed that in answers on this site, when people suggest editing system files, the command they give is always sudo nano or sudo vi.
Because I dislike using terminal ...
9
votes
7
answers
18k
views
configure gedit to always open in new window
I would like to configure gedit so that everytime I double click on a text file it will open on a new window instead of a new tab. How can this be done?
Something like,
gedit --new-window "file ...
9
votes
1
answer
2k
views
gedit top menu invisible when started from terminal and using x11-Forwarding
Given:
I'm using export $(dbus-launch) in my /etc/bash.bashrc file as I'm normally running under a non-admin user and need to su - admin to do anything dangerous.
Normal behaviour:
Go to dash, open ...
6
votes
3
answers
6k
views
How to debug c programs by gedit?
Is it possible to debug our programs written in c by gedit text editor ?
If not, how can i do it ?
6
votes
4
answers
4k
views
Gedit 3.6.1, how to increase the number of recent files from its default of 5?
Ubuntu 12.10, gedit 3.6.1
This won't work:
gconftool-2 --type int --set /apps/gedit- /preferences/ui/recents/max_recents 30
Modifying this file as root won't work either:
cat /usr/share/glib-2.0/...
5
votes
7
answers
11k
views
How do I encrypt/decrypt files within gedit?
In the previous version of Ubuntu (eg: maverick, natty), I used to do a:
sudo apt-get install gedit-plugins seahorse
to have the ability to encrypt/decrypt file within Gedit after enabling the plugin ...
4
votes
1
answer
1k
views
How can I know the encoding Gedit assumes for a given file?
It appears that there are at least two questions here on Ask Ubuntu that are similar to this, but neither has been answered.
How can I find out the encoding method that gedit uses to open a text file?...
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.
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?
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.
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)
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
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?
19
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....
16
votes
4
answers
20k
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
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 ...
14
votes
4
answers
24k
views
Finding the gedit plugin folder
I am a bit confused as to where I should put externally downloaded plugins. I have tried putting them in:
/usr/share/gedit/plugins
~/. Local/gedit/plugins
~/. Gnome2/gedit/plugins
/usr/lib/gedit/...
12
votes
5
answers
41k
views
using gedit through ssh connection - should I have gedit installed on the server?
I wanted to try out using graphical tools over ssh. Just to learn a new thing :)
so my understanding is this, I connect like this: ssh -port -x user@server
But I'm running ubuntu server so it has no ...
11
votes
7
answers
2k
views
Support for various features in gedit
I'm trying to use gedit as my main editor, and am looking for help with some tricky features. For each of the following, can people help me out with how to install and configure the feature?
code ...
9
votes
3
answers
19k
views
Warnings while launching gedit from the Ubuntu terminal
I am facing these warnings while launching gedit from my terminal. Eventually gedit starts, but with these lines of warning every time when I launch gedit:
(gedit:3830): Gtk-WARNING **: Theme parsing ...
8
votes
2
answers
2k
views
gedit: is there a keyboard shortcut in gedit itself to insert date and time?
Note: I'm interested in knowing if there's a shortcut native to gedit itself. I'm not interested in solutions involving Autokey, etc.
In gedit 3.28.1 (Ubuntu 18.04) and 3.30.0 (Ubuntu 19.04), if I ...
7
votes
3
answers
4k
views
Piping Terminal command to Gedit for further editing [duplicate]
I have a complex command in my terminal window which I would like to edit further e. g.
echo "This is a complex command I want to edit in an editor"
How can I pipe this line of code - not the output ...
7
votes
3
answers
5k
views
Text inside files has squares with numbers in it
Some text files I come across, have little squares with numbers in them (in place of certain characters). I am unable to copy and paste these in Ubuntu, but may search and replace in gedit each ...
5
votes
1
answer
2k
views
Switch text direction in GEdit
I want GEdit to show all paragraphs in right-to-left view. I know that it renders paragraphs starting with rtl characters correctly. But I need paragraphs starting with ltr characters also shown as ...
3
votes
1
answer
7k
views
Code completion for gedit
Is there any code completion plugin for gedit which supports all common programming lanuages (especially C and HTML/CSS)?
3
votes
1
answer
1k
views
gedit "Manage External Tools" menu option doesn't appear
This is not the same question as: "Manage external tools" not popping up dialog where the dialog box doesn't pop-up after selecting Manage External Tools from the gedit Tools menu.
My ...
3
votes
2
answers
6k
views
How to change Gedit embeded terminal plugin colors? [duplicate]
I am trying to use Gedit as an IDE for learning C. So far everything is working great but i have this problem: when using ls in its embedded terminal I am unable to see all the files and directories ...
2
votes
1
answer
612
views
Can't open gnome-terminal, nautilus or gedit
I've had some problems after recent nvidia driver update to Ubuntu 17.10 (ubuntu on xorg) (Login loop after nvidia driver update) But I was able to fix the login loop by reinstalling nvidia drivers ...