Official text editor of the GNOME desktop environment

learn more… | top users | synonyms

4
votes
2answers
6k 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 ...
4
votes
2answers
5k 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 ...
4
votes
4answers
3k views

gedit + sshfs won't save (vi saves fine!)

I mounted a remote directory using sshfs and I can't save files using gedit, while saving same file using vi works. Changin permission to o-r (640) allows gedit to save files OK. Is there a way to ...
4
votes
4answers
951 views

Lost a saved gedit file

I saved a text file in gedit last night before shutting off my computer, and I remember what I named the file. When I turned on my computer this morning to load the file, I could not find it. I've ...
4
votes
3answers
3k 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?
4
votes
2answers
7k 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
425 views

Use custom command to open files

gedit application is set as default application for text files. Supposing I have a script with execution rights in /usr/bin, how can I set that script to be run when I open a text file using Nautilus ...
4
votes
3answers
8k 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 ...
4
votes
1answer
1k 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
2k 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
363 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
10k 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
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
265 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
821 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
1answer
336 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
840 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
236 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
1k 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
1k views

How to change the default highlighting of gedit for a specific extension

Everytime I open a .m file, gedit associates Octave highlighting to it. I would like to change the default behavior to Matlab. How can I, in general, change the default highlighting that gedit gives ...
3
votes
3answers
5k 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 ...
3
votes
5answers
3k 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
11k 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
1k 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
3k views

How to set default encoding for non UTF encoded documents system wide?

The title says pretty much most of it - I have some windows txt files, and most of them are Bulgarian with encoding windows-1251. When I open them (sublime, gedit, desktop generated icons) the files ...
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
620 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
2answers
245 views

How to change the gedit “Highlight current line”color?

I'm using Ubuntu 14.10-gnome3.14. Here is the question. when I check the "highlight current line" check-box on the gedit, it highlight the current line, but the color is pure white I can barely see ...
3
votes
1answer
468 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
6k views

How to activate the Gedit terminal plugin on Ubuntu 13.10?

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 ...
3
votes
4answers
12k 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
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
3k 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
116 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
391 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
269 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
439 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
3answers
17k views

Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org

When I try to gedit some files, then I received these from the terminal window. There is already one post about this: Gtk-WARNING : Calling Inhibit failed But it is not solved. How can I solve it ?