Official text editor of the GNOME desktop environment

learn more… | top users | synonyms

4
votes
2answers
5k views

Questions about using Regex Search & Replace in gedit

I am trying to use Regex Search & Replace plugin of gedit. I want to search a digit that repeats 2 or 3 times, so I thought the regex was [0-9]\{2,3\} But it doesn't match the target it ...
4
votes
1answer
973 views

How can I set xdotool and gedit to open a document and save it twice?

I need assistance in creating a script that does the following: Open Gedit Open a document with Gedit Save the document twice Close Gedit I was wondering how can I make it happen with Gedit and ...
4
votes
1answer
1k views

How do you get permission to save rcS after setting UTC=no?

I am a first time user of Ubuntu. I have installed Ubuntu 12.04 dual boot with Windows. Ubuntu is screwing up the Windows clock. I looked this up and found the following lines to use: gedit ...
4
votes
3answers
322 views

Hide debug information when running apps from the command line

Most of the time running a gtk application from the command line it starts dumping debug information to the stdout even though I put them in background. Example: ~$ gedit test.html # and ctrl+z to ...
4
votes
1answer
9k views

Gedit from terminal - inconsistent behaviour

I tend to frequently open a text file from the terminal with a command like so: gedit filename.txt However, the behaviour is inconsistent; sometimes, the focus will leave the terminal and will not ...
4
votes
4answers
1k views

How can I send current line in gedit to terminal?

When editing shell file in gedit, is there a way I could send current line (or selected block?) to terminal? When learning Python I use Spyder IDE. It has an option to execute code selection or block ...
4
votes
3answers
787 views

Automatically indenting text that wraps to the next line in Gedit

I have a problem where text that wraps around to the next line is not indented so that it is aligned with the start of the upper line, and I end up with paragraphs of text identical to ...
4
votes
1answer
1k views

How can upgrade gedit 2.30.4 to version 3?

I want to use some plugins available for v3 of gedit.
4
votes
2answers
264 views

Bash keybindings that match those of gedit?

I want to have the same keybindings in gedit and in bash. Namely all the selections, also cut, copy and paste. I know there are some important ones that are already taken (Ctrl+C, Ctrl+W, etc), ...
4
votes
4answers
718 views

Text editor that can wrap text in predefined HTML tags like Notepad++

I'm new to Ubuntu and am trying to figure out some things. In Notepad++ it is possible to use WebEdit plugin and define keyboard shortcuts for different HTML tags. E. g. "Ctrl + p" can wrap the text ...
4
votes
1answer
1k views

Executing “unicode” Python script from Gedit vs Terminal

As can be seen from screenshot, same script run from Terminal and Gedit behaves differently - in terminal script executes succesfully and in Gedit it raises error: But if I change python in Gedit ...
4
votes
1answer
1k views

gedit-r-plugin not showing up in plugin list in gedit

I installed the gedit-r-plugin through synaptic and in the past it has worked great. I can't seem to even get the plugin to show up in the Preferences -> Plugins list after updating to 11.10. I'm ...
4
votes
3answers
1k 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 ...
4
votes
1answer
197 views

How to stop gedit (and other programs) from outputting GTK warnings and the like in my terminal?

I am running awesome 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. When I execute ...
4
votes
1answer
303 views

How do I edit the autosave interval of gedit?

Can you people tell me how to edit gedit, please? I want to change the autosave feature so that it saves every 1 second, I was able to investigate further that I needed gconf-editor so I installed it ...
4
votes
2answers
3k views

Gtk warning when opening Gedit in terminal

Previously, I need to clear documents history, so I Googled and found this: http://www.watchingthenet.com/ubuntu-tip-clear-disable-recent-documents.html I did the step, and then when I opened gedit ...
4
votes
1answer
791 views

Changing the colour of 'string' in Gedit when typing C++

I'm using Gedit to write C++ code, and have applied my custom syntax colour scheme which works (and looks) great with the exception of the string type, which, for both my custom style and the various ...
4
votes
1answer
199 views

gedit shortcuts

Is there a way to make my own shortcuts for terminal in gedit? I mean, for example if I want to compile a C++ source, when I press F9 I want it to make g++ source_file.cpp (this is only an example) ...
4
votes
1answer
918 views

Increase or View all Stored History in Gedit

I would like to be able to see the last ~200 files opened in Gedit. I was able to increase the number it shows to 40 using this command: gconftool-2 --type int --set ...
4
votes
3answers
1k views

Why did all my custom Gedit themes and language specs disappear after the 11.10 upgrade?

I recently upgraded to 11.10 on my desktop, but afterward all the custom themes I added and the MediaWiki syntax highlighting were gone. For the themes, I forget where I put the files, but the ...
4
votes
1answer
96 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 ...
3
votes
4answers
8k views

How to set default editor in 13.04? [duplicate]

None of this, this nor this worked in setting my default editor. Haven't tried this, I'm afraid it won't work either. So how do I set the default editor to emacs or possibly emacsclient in 13.04 ...
3
votes
3answers
1k views

Gedit warning: GtkScrolledWindow is mapped but visible child GtkScrollbar is not mapped

When I use gedit, there is warning shown: (gedit:3166): Gtk-WARNING **: GtkScrolledWindow 0x236cd10 is mapped but visible child GtkScrollbar 0x2307ab0 is not mapped How can I fix it ?
3
votes
5answers
2k 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?
3
votes
4answers
3k 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 ...
3
votes
3answers
2k views

Installed gmate but themes and plugins now showing up in gedit

I am installing gmate on Ubuntu 11.04 (Gnome 3): sudo apt-get install gedit-gmate But gedit is untouched (there should appear new themes and plugins).
3
votes
1answer
83 views

How to know which versions of application I can install via apt

I try to use apt-cache search gedit But there is no information about version. I am trying to install gedit 2.30.4 (by default it is 3.x on Gnome 3). But there is no gedit with this version. sudo ...
3
votes
3answers
8k 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 ...
3
votes
2answers
1k views

Where can I find gedit's backup files and how to open them?

So, I just finished off the first part of an important task for school and today when I was going to continue, the document with my notes were gone. The only fragment I've got left of my file is the ...
3
votes
1answer
943 views

how to hide filepath and page number in gedit for printing

I have to submit report on my project and i need to print source code but gedit includes file path, filename and page number at the top of the page how to remove it ?
3
votes
2answers
2k views

Gtk-Warnings In Terminal [duplicate]

Possible Duplicate: Gtk warning when opening Gedit in terminal I have Ubuntu 11.10 installed on two different machines, both using x64 installs. Only one machine returns these Gtk warnings ...
3
votes
3answers
574 views

Is there a gedit plugin that adds search features?

I'm hoping to add search and replace within selection and search within files. Having a search option in the context menu would also be handy.
3
votes
1answer
558 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?
3
votes
1answer
378 views

Stop .py opening in gedit?

I have been trying to get a .py file to open in the interpreter instead of in gedit and feel like i'm banging my head off a wall. I have selected "Allow executing file as program" in Permission (it ...
3
votes
2answers
1k views

Gedit causes OS crash [closed]

I'm running 12.04 on a Dell desktop (that originally came with just 10.04 installed), and when I try to drag a Gedit tab from one window to another, the entire system freezes, solvable only with a ...
3
votes
2answers
247 views

Is my gedit-latex-plugin working properly?

I have installed gedit-latex-plugin(0.2 rc3) to be used with gedit(2.30.3) in ubuntu 10.04. If I use the command gedit file.tex& in terminal the file is opened and it seems everything works fine ...
3
votes
2answers
2k views

Gedit has an unlisted Ctrl-D shortcut which deletes a line. How can I override it?

In Gedit, I installed the line_tools plugin. It uses Ctrl+D to duplicate the the current line. When I pressed Ctrl+D, it did the opposite! It deleted the line instead! It turns out that Gedit has ...
3
votes
3answers
6k views

gedit can't recognize character encoding, but gvim can

I have a lot of plain text files which come from a Windows environment. Many of them use a whacky default Windows code-page, which is neither ASCII (7 bits) nor UTF-8. gvim has no problem opening ...
3
votes
1answer
104 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
358 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
241 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
2answers
2k views

“Unexpected error: Invalid byte sequence in conversion input” in gedit

I have a text file. I created the content of the text file by copying from some webpage into it. During the creation, I was completely under gedit. I then saved the file and exited gedit. But since ...
3
votes
1answer
435 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
418 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
4answers
10k 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 ...
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
313 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
76 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. ...