Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gedit]

gedit is a lightweight text editor for the Gnome desktop environment

0
votes
1answer
73 views

cat shows file contents, gedit and vim show blank file

I was planning on building a current logging device with an Arduino, and tried starting off with the basic SD-card write example from the Arduino IDE sketchbook. The Serial console showed no errors, ...
0
votes
0answers
91 views

opening editors on files with invalid characters in them

In my use case, I have a lot of text files containing invalid characters. When I search through those files, e.g. grep "some text" /home/bla/blubb/* | xargs editor_of_your_choise I'm getting the ...
1
vote
1answer
108 views

Open file in gedit by using full path

In the previous versions of gedit, I was able to open the file directly by entering the full path of file in open window dialog box. But now, I have to browse to the folder manually before I can open ...
0
votes
2answers
879 views

Can I use “gedit” through “ssh”? [duplicate]

I am trying to use gedit to see a file inside a mini-pc I connected through ssh but it get: (gedit:3864): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. ...
2
votes
0answers
271 views

Gedit (from terminal) has stopped opening files in tabs, and now opens an instance per file - how do I switch it back to tabs?

I'm using a new install of Ubuntu 12.04 MATE edition. I'd installed gedit which had been working normally, ie if i did gedit filename, and gedit was already open, it opened the file in a new tab. On ...
1
vote
0answers
48 views

How do I change the color of the spell checker squiggly red line for GTK applications?

For example for Geany and gedit. I expect something as simple as some .gtkrc-2.0 line but there is no documentation on this. How do I change the color of the spell checker squiggly red line for GTK ...
0
votes
0answers
54 views

Possible explanations for locked window input

I've never seen this before. I opened gedit (gedit2), three windows but one session, meaning all windows share the same PID. Note that there is absolutely no way to open more than one gedit2 session ...
2
votes
2answers
371 views

Can I change how gedit prints its page header?

I'm often using gedit to print text documents. One thing I don't like is that it prints the full path to the document inside the page header, which sometimes overlaps what's in the top right corner; I'...
2
votes
1answer
405 views

Why is a duplicate file sometimes created after editing a file? [duplicate]

I use gedit to modify/create files in my system, and sometimes I see that after editing, a duplicate file is created by the name of samename~ Just that ~ is extra. Why does this happen? Is there any ...
0
votes
0answers
249 views

One gedit instance per i3 workspace

On Ubuntu 16.04 with Unity, I get one gedit window (or even instance?) per workspace. Opening a new file, e.g. from Nautilus, would open it in a new tab in the workspace window, or open a new one if ...
0
votes
1answer
255 views

Why text file always opens at the same point I closed it?

I have a .txt file whith quite a long text content. I noticed whenever I read the content up to a certain line and close the file, if I re-open the file later (right away, hours later, or days later),...
3
votes
3answers
507 views

View text file and highlight numbers

I'd like to view a text file on the terminal and highlight its numbers. Something like I get when I open it with gedit. I haven't been able to do this with less, cat, vim or other viewers/editors. P....
1
vote
0answers
871 views

Gedit: How to insert backslash \ in search and replace regex

I'm trying to comment out some lines in c++ by matching them with a regex, and replacing with the match preceeded by \\. But instead, gedit performs no replacement, and the search+replace dialog gives ...
1
vote
1answer
64 views

Why does gedit need libbluray?

Pardon me if this is something that "everybody knows," but gedit (the gnome gui text editor) has a dependency on libbluray. I've googled and read the release notes for gedit, with no luck, and I can'...
0
votes
1answer
48 views

Why Gedit's hash symbol is expanded and interpreted wrongly in internet browsers?

I copy-paste Gedit-hash (#) in a part of filepath into internet browser to read PDF file unsuccessfully: no file found with Gedit-hash symbol. Inputing there directly the hash symbol from the ...
8
votes
2answers
3k views

How to force gedit to open a new window independently of existing gedit windows whenever a text file is double-clicked on a Gnome desktop of Debian 8?

How can gedit be forced to open a new window independently of existing gedit windows whenever a text file (.txt) is double-clicked on a Gnome desktop of Debian 8, Jessie? Suppose that a.txt is ...
4
votes
2answers
4k views

Cannot open GUI editors in superuser mode

I was trying to edit my sources.list in order to add local mirror information. I am not comfortable with command line editors, so I tried using sudo mousepad /etc/apt/sources.list. I got the ...
1
vote
2answers
115 views

Can I get gedit to open on startup with a list of certain files?

I know how to make certain processes open up at start up but I'd really like to get gedit to open a number of files by default every time as well. It sometimes takes me a couple of minutes to find/...
0
votes
0answers
25 views

GtkSourceView lang file is loaded but nothing gets highlighted

I want to create a custom lang file for source highlighting in gedit etc. Before I start, I cloned an existing file for testing purposes, /usr/share/gtksourceview-3.0/language-specs/imagej.lang and ...
1
vote
3answers
2k views

can't kill gedit process from its PID

This is the sequence of commands, gedit starts, but it cannot be killed from its process ID $ gedit& $ t=$! $ echo $t 4824 $ kill $t bash: kill: (4824) - No such process It would work just fine ...
1
vote
0answers
231 views

Some apps throw GTK+ errors

System: Ubuntu desktop 16.04.1 LTS I get the following errors when running, gedit from a terminal command line: (gedit:5688): Gtk-WARNING **: GTK+ module libgail.so cannot be loaded. GTK+ 2.x ...
4
votes
2answers
3k views

How to get a “duplicate line” hotkey in gedit?

I want to have a shortcut key for duplicating the currently selected line in gedit. Many other editors use Ctrl+D or Ctrl+Shift+D for that, but gedit is different. Here the default behaviour: Ctrl+D:...
0
votes
1answer
304 views

How to comment out LaTeX code in Gedit? [closed]

I am not sure if it is supported but cannot find it. OS: Debian 8.5
1
vote
1answer
510 views

Fullscreen not working in xmonad

I am using Arch Linux (4.7.5-1-ARCH) with xmonad (xmonad 0.12) window manager. I am new to xmonad and I am still learning it. I have not done much modifications so my xmonad.hs is minimal. import ...
1
vote
0answers
82 views

Custom syntax highlighting misbehaving in gedit

I'm creating a custom syntax highlighter for a markup-like language that I created to accomplish some natural language manipulation stuff, so I thought I'd get started with the simple keywords, seeing ...
2
votes
1answer
360 views

Downgrade Gedit in Fedora 23

I am running Fedora 23 and need to downgrade to gedit 3.10.4 and the corresponding versions of gedit-plugins and gedit-r-plugin. This answer provides code to do this in ubuntu. I'm trying to do the ...
2
votes
1answer
183 views

Using open file dialog within gEdit using keyboard only

I use the default gEdit on Cinnamon on Linux Mint, but I find when opening files from within it, I cannot navigate the open file dialog solely using the keyboard. I hasn't been intuitive how I use tab ...
0
votes
1answer
135 views

Is there a shortcut in gedit to insert a line, i.e. the exact opposite of deleting a line?

In gedit, Ctrl+D deletes a line. Is there a shortcut for inserting/adding a line?
1
vote
0answers
343 views

How to remove context menu items or change right click behaviour?

Is there any way to remove or disable the 'undo' and 'redo' options in the right click context menu for gedit? Another suitable solution would be to disable the 'click on release' mouse feature. So ...
0
votes
1answer
4k views

Substitution with Regular Expressions in gedit

Say I want to remove all digits from a text file using gedit 3.10.4 advanced_find 3.6.0 I have selected the Advanced Find/Replace plugin to support regular expressions out of an internet search. It ...
1
vote
1answer
125 views

How to add the correct repositary in gedit?

I am trying to install Rstudio in my linux mint 17.1 using software package manager. I tried the following way which is given by this link. But I am getting the following error. E: Malformed line ...
0
votes
1answer
200 views

Thunar fails to open gedit files

When I try to open a file with gedit in Thunar, I get a loading cursor for a few seconds, then nothing happens. In Task Manager I can see gedit --gapplication-service start for a while, then close and ...
2
votes
0answers
92 views

Font in gedit changes when I input the first letter in a line

I think this is a rather strange problem. I am using gedit, and my current font in the settings is the default (Monospace 10). But some lines in my text file has a clearly different font: Still ...
4
votes
1answer
932 views

Removing gedit without removing all of cinnamon-desktop-environment

I don't like gedit and always use geany or vim or something else. Removing it from my current Debian testing install also removes the cinnamon-desktop-environment meta package because it depends on ...
6
votes
2answers
5k views

How to launch gedit from terminal and detach it (just like “subl” command works)?

To open a file to edit in gedit I run gedit sample.py &. But with Sublime Text it is simply subl sample.py. This opens the file to edit and it doesn't run in the background (in my shell). How ...
2
votes
1answer
305 views

Editing multiple files simultaneously with vim/gedit

I'm trying to save some work by editing multiple files with the same name located in different directories: $ mkdir -p directory_{0..10}/results How may I create files with the same name in all ...
5
votes
1answer
2k views

Adding new language to Gedit

I need to add a new language in Gedit. The problem is, it is included in Gedit menu of languages now, but its syntax is not highlighted and Gedit is not able to indentify the language just from the ...
1
vote
0answers
359 views

lp prints blank pages for pure text file

Printing a text file through lp result in blank page while printing same file through gedit works fine. lp is able to print pdf and jpg image files, but not text file. On further looking in to ...
4
votes
1answer
2k views

How do I make Python plugins work in Pluma?

I'm trying to add the Python plugin trailsave to the text editor Pluma* (which is a Gedit fork) but the plugin doesn't show up in the "Active plugins" list in the Pluma preferences. Also, I have ...
4
votes
1answer
147 views

gedit installation size is too large

have installed Debian Linux, but gedit is not installed along with it. When I attempt to install gedit using apt-get, it prompts to download many packages up to 370 MB, which is strange. I only want ...
0
votes
0answers
617 views

Gedit start problem in kali linux

I try to open gedit after install third party plugins but it won't open. When i try it by terminal it shows root@localhost:~# gedit Segmentation fault I think gedit is running background but it don'...
-1
votes
2answers
582 views

How to use pass filename without extension to gedit external tool for make?

I am wanting to build and run a program called dbgen using the external tools. I know that this variable holds the filename, ‍‍‍‍‍‍‍‍‍dbgen.c‍‍ : $GEDIT_CURRENT_DOCUMENT_NAME How do I remove the .c ...
5
votes
3answers
4k views

Cannot resize Gedit window

Gedit 3.14 in Debian 8 has no window manager decoration and the window cannot be resized. Do I need to install any additional package to make it work or has Gedit become unusable outside of the Gnome ...
1
vote
0answers
364 views

How can keyboard smooth scrolling be turned off in gedit (GNOME 3.14/Fedora 21)?

In gedit on GNOME 3.14 (Fedora 21), using the mousewheel to scroll results in ordinary scrolling, whereas using the arrow keys or PageUp/PageDown results in smooth scrolling. How can smooth scrolling ...
2
votes
0answers
275 views

Gedit not saving settings - Fedora 21

I have Fedora 21 and gedit won't save config settings (like tab width, auto-indent, etc.). I tried deleting the configuration files directory per this question: gedit reverting settings to default, ...
1
vote
0answers
126 views

Can gedit highlight element of svg stucture?

Gedit can show matching parenthesis. Can it do the same with tags of an SVG file ? For example when I mark <text> I need to find closing </text> tag.
0
votes
2answers
6k views

moving a file to a folder with root privileges in CentOS 7

I am reading a tutorial that wants me to place a script file called script.sh into a folder called /etc/profile.d/. However, when I try to save the script.sh file in that directory, the gedit tool ...
0
votes
2answers
427 views

“Snippets” plugin doesn't work on gedit

Note: I already know the answer, I'm only sharing my experience. Some gedit plugins doesn't work on Lubuntu, the most notable is the Snippets one. I get the following error when I click on Tools->...
0
votes
1answer
693 views

Auto code completion in GEdit and VIM, for C++

Being a Visual Studio fan, I am just wondering if I can have same feature in GEdit and VIM. PS : I’m new to VIM and currently using CentOS and Ubuntu.
3
votes
0answers
621 views

Vertical lines connecting blocks in Gedit

I'd like to know if there is some way I can get gedit to display vertical lines connecting logical blocks of a programming code (namely Fortran 95 in my case).     See in the image ...