Official text editor of the GNOME desktop environment

learn more… | top users | synonyms

3
votes
1answer
119 views

Add 'duplicate file' to Gedit file browser panel right-click menu?

In TextMate and other IDE's like Netbeans, there is a right-click option to duplicate a file. Is it possible to add this feature in Gedit file-browser panel on right click? Currently, I can create ...
3
votes
1answer
401 views

Gedit: Saving has been disable by system administrator

I have a problem with gedit. If I start writing a new file or edit an existing file the Save button and short cut to save is disabled. If I exit a modified document a dialog opens with the following ...
3
votes
1answer
275 views

C++ programming - Is there a way to make gedit recognize new classes?

I'm C++ programming in ubuntu 12.04 using gedit and it recognizes c++ default commands. I was wondering if I can make it able to recognize the new classes I define and change their color in the code ...
3
votes
1answer
442 views

Open with “gedit”

After upgrading to Ubuntu 11.10 I have found that my "open with gedit" right click menu in the file manager does not work unless I use it twice. Does anyone know why this might be?
3
votes
1answer
254 views

How to convert a text file with mixture of encodings to a single encoding?

I created a text file by copying its different parts from different sources (webpages, other text files, pdf files) into gedit and saving it to the file. I guess that is the reason that I have ...
3
votes
2answers
239 views

gedit 3.8.3 several plugins do not work

I have upgraded to Ubuntu 13.10 (and thus Gedit 3.8.3), and several plugins I was using in Gedit (like "session save" and Strl-Tab navigation throught tabs) are now unavailable. Can you help get them ...
3
votes
1answer
504 views

GEdit runs with unsaved empty document [closed]

In the last few days gedit has started behaving quite weird. Every time I open it, it has an unsaved, empty document, even if I open some code file (so as a result, instead of opening my file ...
3
votes
1answer
2k views

How to add a new language definition for syntax highlighting in Gedit?

I've attempted to create a new .lang file for getting Gedit to recognize the Julia programming language. I have read the tutorial, the reference document and the wiki page Gedit/NewLanguage, and I ...
3
votes
2answers
373 views

Can Gedit also backup files like “Untitled Document 1”?

GEdit can make backups of files that have already been saved once. But can it make backups of files that I have just created, and not saved yet? Those files are typically shown as "Untitled Document ...
3
votes
3answers
2k views

Unable to run gedit as a different user

I login as user 'foo' and if I am able to run gedit and edit files in my Ubuntu 12.04 machine with a DISPLAY setting as :0 If I "su - bar" and then try to edit files, I get a no protocol specified ...
3
votes
1answer
1k views

Gedit is having problems starting up

I just installed the new version of Ubuntu 11.10 (64 bit). Mr processor is intel i7. I am noticing that Gedit is having problems starting up. I start it then it crashes out with no error message and I ...
3
votes
1answer
123 views

save in gedit without ~ in virtualbox

How can I save in gedit whilst using ubuntu 12.04 in virtualbox into a shared folder without ~ being added to the end of the file name? If I try the answers suggested here then I cannot save at all. ...
3
votes
2answers
213 views

Can I turn off gedit antialiasing?

As the text seems blurry I'd like to disable antialiasing in gedit. I don't see anything related in the program's Preferences. The problem appeared after upgrade from 12.04 to 14.04:
3
votes
1answer
1k views

Can I change the color of tabs in gedit?

under Xfce 4 (Xubuntu 4.8) the tabs of gedit appear black with dark grey writing (at least on my PC it does). Obviously this makes it pretty hard reading the file names that are open. Changing the ...
3
votes
1answer
363 views

Gedit Ruby 1.9.x syntax highlighting

I have a problem with Gedit and it's way of highlighting new Ruby syntax. In Ruby 1.9.x, we can write Hash this way: { class: 'class_name', id: 'uniq_id' } instead of { :class => 'class_name', ...
3
votes
2answers
250 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?
3
votes
3answers
3k views

How to create a new file?

I've tried gksudo gedit /etc/xinetd.d/tftp (This is the file I have to create) I got an error message couldn't find the file /etc/xinetd.d/tftp please check that you typed the location ...
3
votes
1answer
385 views

Why am I getting this error while using gedit?

(gedit:4778): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed What does this error mean?
3
votes
1answer
499 views

Is there ruby syntax validation plugin for gedit?

I am using the https://github.com/gmate/gmate setup, but it lacks a ruby syntax validation plugin. Where can I find one? Tnx!
3
votes
4answers
979 views

Mouse cursor dissapears when long-pressing Alt in Gedit

When I press Alt in Gedit, and hold it for two seconds or so, the mouse cursor disappears, and then as I continue moving the mouse, the cursor starts flickering. The flickering happens only inside the ...
3
votes
1answer
86 views

gedit snippets lost

Here's the problem: Everytime I close gedit all of my own (LaTeX)snippets are lost when I launch it for the next time. Default snippets are still available and working. What I tried so far: Restart ...
3
votes
1answer
549 views

gedit 'broken' after update on Ubuntu 13.10

I have upgraded from Ubuntu 12.10 to 13.10. In the meanwhile I have removed the Enthought Python distribution manually because I want to start back on the 'official' packages. So I removed the python ...
3
votes
0answers
231 views

Printing 2 sides per page does not work anymore since update to 13.10

I used to often print documents with 2 pages per side to save paper. Since I have updated to Ubuntu 13.10, this no longer works properly. The problem seems to be with the rotation. Because if I ...
3
votes
1answer
473 views

How to get QML syntax highlighting in gedit?

QML files opened with gedit don't have syntax highlighting. Is there a package providing a gtksourceview lang.spec file for QML? If not, has anyone written a lang.spec than can be installed locally?
3
votes
1answer
336 views

Help wanted with customising the markdown panel in gedit

I have gedit 3.6.2 (Lubuntu 13.04) and I've installed a plugin from gedit-markdown: support for Markdown language in gedit that allows me to preview markdown text in a bottom or side panel within ...
3
votes
0answers
153 views

Gedit, Evince has print disabled

Print menu command is disabled in evince and gedit. Print functionality works fine in other applications like Chrome, GIMP, Firefox. Ubuntu printer setup correctly recognizes my printer and scanner ...
2
votes
2answers
12k views

Changing computer name [duplicate]

Can someone tell me how to change the computer name on a pc, I've tried to edit the /etc/hostname file but it won't allow me access to save the amended file, thought the user the system created was ...
2
votes
2answers
1k views

Gedit external tools plugin failed to load

I had gedit configured with some plugins but after upgrading to 13.10, every time I go the gedit Plugins and try to load the external tools I get a message saying: Failed to Load. Not sure how to fix ...
2
votes
4answers
9k views

How to open the default GUI text editor in Ubuntu or Lubuntu via a script?

I have a script that uses gedit to open text file in Ubuntu. That script does not work under Lubuntu. What command is required to execute the default text editor? I want to make the script usable ...
2
votes
3answers
1k views

Convert a (txt|srt) document from Western(ISO-8859-15) to UTF-8

I am having problems with subtitles in my language. They are encoded as Western(ISO-8859-15) and therefore some characters are not displayed correctly. I am tired of replacing manually using gedit ...
2
votes
6answers
6k views

How do I encrypt/decrypt file 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 ...
2
votes
2answers
99 views

How to prevent file owned by root when using `sudo gedit`

When using gedit , i always need to edit file in /etc/ or /usr/ which need to be root. So i created a Launcher shortcut on the left with command sudo gedit. So every time i click the icon on the left ...
2
votes
3answers
860 views

Disabling gedit backup files (filename~ tilde)

How can I get the following command to change for the root user as well? gsettings set org.gnome.gedit.preferences.editor create-backup-copy false This command should disable gedit backup files. ...
2
votes
1answer
1k views

Errors shown in terminal when editing files with gedit

When editing any file f.e. like this: r@ngf:~$ sudo gedit /etc/default/grub [sudo] password for r: (gedit:1638): Gtk-WARNING **: Attempting to store changes into ...
2
votes
2answers
104 views

Whenever I download an .sh-file gedit opens up

Whenever I download an .sh-file gedit opens up and then freezes. Why?
2
votes
2answers
744 views

Add more functions in Gedit

I'm trying out Ubuntu for the first time so I'm a very new but I've done a bit of searching and I want to get something pretty similar to Notepad++ Gedit so far seems to be the pretty similar except ...
2
votes
2answers
2k views

Auto indentation in Gedit

I'm using Gedit to program C and CPP, and I've enabled auto indentation in Edit->Pref. However, it still doesn't work. Is there anything I can do?
2
votes
1answer
1k views

Change newline character in gedit [duplicate]

So basically there is 3 types of newline characters according to operating system: Windows, MAC and Linux. Gedit is using Linux by default, but I'd like it to use Windows, so I can open the same text ...
2
votes
3answers
1k 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 ...
2
votes
1answer
379 views

Create a custom syntax highlight in gedit

Following my question from long ago, I am still trying to tweak my fortune handling capabilities. The display in terminal is awesome, just one thing remains - syntax highlighting in Gedit as I add, ...
2
votes
1answer
2k 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): ...
2
votes
1answer
363 views

Memory problem with gedit

I found that as a gedit session runs longer, the more memory it takes, regardless of how small the sizes of the text files opened in the session are. So is it normal or a memory leak problem? For ...
2
votes
3answers
281 views

Programming language api sidebar in gedit

Im not sure this is an SO question or not, but is there a plugin for gedit to enable me to have the api for a particular language open in a sidebar? Im currently working in Java, and it would be ...
2
votes
1answer
124 views

“gedit” does not launch as root: “CRITICAL: file log.c …”-error (no gksu problem!)

I am running Ubuntu 14.10 with XFCE. Since a few weeks, gedit is not launching any more as root (with gksu gedit). Launching with my normal account works without problems. The problem is not gksu, ...
2
votes
2answers
281 views

assign geany or gedit highlight to text

Is there any way to assign geany highlight to text. For example when I pass a programming code to geany. Functions color is red. The thing which I am looking for is assingning these color to text. For ...
2
votes
2answers
1k views

How can I run sudo gedit as gksu gedit

I'm looking into ways of automatically loading Gedit as gksu gedit when I enter sudo gedit by mistake? I have found that I have made a number of files unreachable by using gedit and I have only just ...
2
votes
2answers
200 views

Search in a big file for specific string

I have a 6 GB text file. It has an access record for a whole month to my website. That file is my only hope to know how a someone got access to my website and hacked it. But, as the file is too big, ...
2
votes
2answers
703 views

Gedit Shortcuts stopped working

Suddenly the Gedit shortcuts stopped working. For example, Ctrl+F, instead of finding a string makes the cursor to the next character. Ctrl+H now has the same functionality as backspace. I tried ...
2
votes
1answer
231 views

Why is gedit so laggy when editing through FTP?

I use gedit to edit files on my Media Temple server, but it's so laggy. Other editors I've used don't have this problem. Saving takes a long time, and gedit usually freezes up for a bit during this. ...
2
votes
2answers
160 views

Why the feature to insert date/time not work in gedit? [closed]

When I tried to insert the date/time of gedit, no data was inserted into the document. Only blank spaces appeared in the current cursor position. I tried again from the terminal, it was the same and ...