Official text editor of the GNOME desktop environment

learn more… | top users | synonyms

5
votes
1answer
82 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
320 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
1answer
1k 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
1answer
2k 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/ ...
5
votes
2answers
3k 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 ...
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
210 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
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
657 views

How to avoid opening duplicate files in new windows in gedit?

Having already opened several text files with each in one tab in a window, now open another text file, gedit sometimes creates another window instead of a session under the current window. I ...
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
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
5k 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
3answers
12k 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 ...
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
6k 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
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 ...
4
votes
2answers
2k 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
1k 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
19k 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
3answers
483 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
3answers
12k 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
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
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
2answers
966 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, ...
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
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 ...
4
votes
1answer
12k 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
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 ...
4
votes
3answers
7k 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
3k views

Where do I find the local and the gedit plugins folders in Ubuntu 14.04?

I know this will be likely marked as a duplicate. But none of the answers in Finding the gedit plugin folder can solve my problem. It seems that I don't have a gedit plugins folder. Is there any easy ...
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
276 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
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
1answer
408 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
453 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
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
993 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
823 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 ...
4
votes
3answers
2k 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
3answers
4k 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 ...
4
votes
0answers
204 views

gedit highlight misspelled words for every document by default

Every time I open documents and for every new documents I have to re-enable the spell-checker in gedit. How can I toggle it to always be on for every document?
4
votes
1answer
673 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?
4
votes
1answer
2k 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 ...
3
votes
5answers
4k 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?