Official text editor of the GNOME desktop environment

learn more… | top users | synonyms

5
votes
4answers
1k 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 ...
5
votes
3answers
15k 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 ...
5
votes
1answer
1k 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 ...
5
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 ...
5
votes
3answers
655 views

Does Geany or Gedit provide a browser protocol in the way Textmate does with txmt://?

Textmate on the Mac can be bound to the txmt protocol, meaning that development frameworks (such as the Play Framework) can be configured to use this to display error messages. If a stacktrace appears,...
5
votes
2answers
1k views

Gedit and Filezilla Input Problem

I upgraded 14.04 to 14.10. I installed my apps(lamp, nodejs, filezilla, phpstorm, git etc.). I have some input problems in some apps. In Filezilla, I can't use tab and delete keys Some UI problems, ...
5
votes
1answer
312 views

Is there a keyboard shortcut to obtain a non-breaking hyphen?

I am writing Pandoc Markdown in the gedit text editor. From time to time, I need a non‑breaking hyphen. (By the way, the hyphen in the previous sentence is one!) So far, I have been copying non-...
5
votes
2answers
4k 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 ...
5
votes
3answers
1k 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 this one. ...
5
votes
1answer
94 views

How can I change the default name that kate and gedit give to new documents?

When you create a new file in kate or gedit they name them like "Untitled1" or "Unsaved Document 1". How can you change this to some other string$n pattern of your choice?
5
votes
2answers
343 views

howto prevent gedit always opening a new unnamed file when launched

Is there a way to prevent gedit from always opening a new "untitled" file when launched (at least when an other file name is passed either with Alt+F2 and gksudo)? It is borring to always have to ...
5
votes
3answers
2k 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
1answer
2k views

Gedit hangs and crashes

While typing in Gedit(Ubuntu 14.01) it occasionally hangs,the mouse arrow flickers and then it crashes without any error message(it just closes),causing great trouble. I am normally using Gedit ...
5
votes
2answers
3k views

gedit plugin to highlight all instances of selection

Using gedit 3, I've tried multiple plugins to highlight all instances of the current selection (a la Notepad++): https://code.google.com/p/smart-highlighting-gedit/ https://github.com/mmuell23/...
5
votes
1answer
212 views

Gedit's save empty file dialog I never opened

Every time you open a text file in the file manager (Dolphin) it automatically open a blank document at the same time. The problem with that is that when i close the file it then asks to save the ...
5
votes
1answer
520 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 ...
5
votes
1answer
2k 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 ...
5
votes
2answers
2k views

Compile gedit 3 to use on Gnome 2

I'm on Gnome 2.32.1 (Ubuntu 11.04), and I would like to use gedit 3 on my current desktop environment. To achieve this, I think I could compile gedit 3 and its dependent libraries with a custom ...
5
votes
1answer
56 views

How can I disable gedit's behaviour of right-aligning Arabic text?

If I open a new document in Gedit and I type a line in English, followed by a line in Arabic, Gedit is very smart and makes the line in English right-aligned, and it makes the Arabic left-aligned, as ...
5
votes
0answers
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?
5
votes
0answers
8k views

How to change background color of gedit embedded terminal [duplicate]

How can I change the background color of gedit embedded terminal? I have tried changing my normal terminal (ctrl+alt+t) background and restarting gedit - but no luck. Thanks
4
votes
4answers
6k views

How To run Gedit and Subl commands in the background?

If I use Gedit or Subl (sublime text) commands in the terminal to open a file, I can't do anything else in the terminal until I close the text editor. How can I fix this?
4
votes
1answer
232 views

I get no output when I compile Java code from the Terminal

When I try to run my Hello World program it doesn't show any output: $ ls hello.class hello.java $ javac hello.java $
4
votes
2answers
145 views

I have 2 different GEdits?

When I load GEdit, it is different from sudo GEdit. Normal GEdit gives me Gtk warnings in the console, and ithas a different look. When I install plugins on either version, it doesn't reflect on the ...
4
votes
4answers
5k views

Why does sudo gedit NOT open files starting with Exclamation mark

When trying to open a file with sudo gedit /path/to/file with a file name starting with a ! in front eg !config.ini i can not open the file. However if i do sudo nautilus then open the file with gedit ...
4
votes
3answers
7k 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
4answers
24k 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 --...
4
votes
2answers
13k 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 Ctrl+...
4
votes
2answers
2k views

Whenever I download an .sh-file gedit opens up

Whenever I download an .sh-file gedit opens up and then freezes. Why?
4
votes
3answers
2k 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....
4
votes
2answers
3k 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 ...
4
votes
1answer
2k 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, ...
4
votes
3answers
554 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
2answers
1k 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 ...
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 /etc/...
4
votes
2answers
3k 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 ...
4
votes
2answers
13k 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
3answers
8k 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 ...
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
281 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), still....
4
votes
2answers
589 views

Install `gedit-plugin` for a downgraded version of gedit

Using these instructions, I could get gedit 3.10.4 to run on ubuntu 16.04. Now, I need to install the version of gedit-plugins that corresponds to gedit 3.10.4. The sources are here but I have not ...
4
votes
4answers
1k 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
3answers
3k 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 ...
4
votes
1answer
2k 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
2answers
4k 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
37 views

How can I insert a Bash variable using the Gedit Snippets plugin?

I use Gedit and enabled the Gedit Snippets plugin. I added a custom snippet for the sh language that shall contain a Bash variable like $LINENO. It looks like this simplified example: my_command || ( ...
4
votes
1answer
477 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

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
1k views

How can I change the Gedit keyboard cursor / caret to a block instead of a bar?

The single-pixel-width cursor / caret in Gedit (and other text editor boxes in Ubuntu) is pretty thin and hard to see: I like the block cursor used in the standard terminal, however: Is there a ...