Skip to main content

Questions tagged [gedit]

gedit is a lightweight text editor for the Gnome desktop environment

Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Gedit Bracket match is out of range

Gedit matches brackets like { with } and tells us where the matching opening/closing bracket is. If it is more than 10000 characters, it says "Bracket match is out of range" instead. How ...
Some Student's user avatar
0 votes
0 answers
42 views

Running a GUI in a Singularity container over ssh -X

I'm trying to run gedit over ssh -X, so far, for the Singularity.def file I build (on mac in vagrant) with, I have Bootstrap: docker From: ubuntu:22.04 %post apt-get -y update apt-get -y ...
user14094230's user avatar
0 votes
1 answer
469 views

Start of the line with regex in Ubuntu 22.04's gedit text editor

I try to use regex such as ^ to find the start of the line in the gedit editor in Ubuntu 22.04 but it doesn't work. Also for $ as the end of the line. Other regular expressions such as \n,\d,\s work ...
trilisser's user avatar
  • 103
0 votes
0 answers
119 views

gedit from the command line: new window or tab?

I'm trying to customize the behavior of gedit when I launch a new instance from the command line. In the past, the default was "open a new tab if there's a existing window in the current ...
jyoung's user avatar
  • 111
-3 votes
1 answer
1k views

error gedit sources.list

after saved sources.list with gedit, i get this error, but can update/upgrade: ** (gedit:2431): WARNING **: 17:40:30.625: Set document metadata failed: Setting attribute metadata::gedit-spell-language ...
Caesar Bhandari's user avatar
1 vote
1 answer
240 views

Nerd font icon is pulled right, and gedit cursor changes to reflect some difference with the icon?

I am using a patched nerd font, SauceCodePro. I have used the cheat sheet to copy some icons and paste them into an editor. For example, I copied the icon for nf-mdi-yelp, and when pasted into gedit, ...
Steve Lorimer's user avatar
0 votes
1 answer
40 views

gedit External Tools & Csound

I am a newbie at Linux and so far so good my workflow of studying music with Csound is adding a new tool under the External Tools Gedit plugin doing this, #!/bin/sh csound '/home/ye53b/Desktop/...
ye53b's user avatar
  • 1
2 votes
0 answers
176 views

Assign XML highlighting to a file extension in gedit by default

I am working on a new project that saves data in an XML format but does not use the XML file extension. As such, whenever I open the file in gedit I have to go and set the manually set the highlight ...
Olumide's user avatar
  • 177
0 votes
0 answers
2k views

Gedit doesn't work in Kali 2020

Kali 2020 doesn't come with gedit pre-installed. After installing with sudo apt-get install gedit and trying to run, I get an error message: ┌──(kali㉿kali)-[/root] └─$ gedit test.txt Unable to init ...
Mate Mrše's user avatar
2 votes
0 answers
2k views

Issues with ssh, X11 forwarding and gedit

I'mm ssh-ing from an Ubuntu-18.04 machine to RedHat6 with ssh -XYC [email protected] and I get the following warning: Warning: No xauth data; using fake authentication data for X11 forwarding. I ...
Thanos's user avatar
  • 435
0 votes
1 answer
202 views

xdg-open is only using gedit

Something went wrong on a whole bunch of machines, and I can't figure out what or where or when or how. Red Hat Enterprise Linux Workstation release 6.10 (Santiago) All of my desktop icons are not ...
hymie's user avatar
  • 1,740
1 vote
1 answer
1k views

How do I apply darkTheme in gedit?

I am using a Linux beta in chromebook and gedit with plugins. I want to make the gedit theme all dark. As you can see in the screenshot, I managed to change the theme, but the file browser and the ...
OKUU's user avatar
  • 13
0 votes
0 answers
35 views

How to save gedit changes right along with nano changes, instead of appending ~?

I've got a .nanorc file that I love, records all changes to files when using nano. Gedit, on the other hand, just writes out a file next to the live version with a ~ appended. Is there some bit of ...
listenlight's user avatar
0 votes
1 answer
63 views

Can one see from other program if Gedit is running and contains unsaved text?

I use Gedit as my favourite text editor. Is it possible to write a script for example in Python or Bash to check if Gedit is running and contains unsaved text?
guest's user avatar
  • 1
0 votes
2 answers
1k views

Is there a way to automatically remove trailing whitespace when saving with gedit?

Is there a plugin of some sorts that gets rid of trailing spaces and tabs in every line when saving a file edited with gedit?
user418703's user avatar
0 votes
3 answers
7k views

How to run sudo gedit without connection refusal?

I'm installing and configuring the ssh in CentOs 8 with a virtual box machine. I installed both libraries with following command: sudo yum install openssh-server openssh-clients Then I started the ...
Henrique Branco's user avatar
1 vote
1 answer
2k views

Is there a way to upper-case a selected text?

I use gedit text editor; in this application I can easily change the case of a selected text: all UPPER case all lower case invert case title case (screenshot) The question is: is there a ...
mattia.b89's user avatar
  • 3,288
1 vote
0 answers
411 views

Why does gedit only run with sudo?

$ which gedit /usr/bin/gedit $ ls -l /usr/bin/gedit -rwxr-xr-x. 1 root root 18696 Nov 27 05:55 /usr/bin/gedit $ gedit $ # Nothing happens $ sudo gedit [sudo] password for user: $ # gedit window starts ...
StoneThrow's user avatar
  • 1,797
1 vote
0 answers
110 views

Error spam from gedit when launched from command line

I have gedit set as my git editor, and it works quite well for me. When I do git commit, gedit pops up with the commit info and I can enter my commit message, Ctrl+S, Ctrl+Q and git will proceed as ...
Donentolon's user avatar
2 votes
0 answers
275 views

Syntax highlighting for git syntax in gedit

Is there a way to automatically get syntax highlighting for git syntax in gedit? I set gedit as my default git editor with git config --global core.editor "gedit -s". Now when I type git commit, ...
Donentolon's user avatar
1 vote
2 answers
1k views

How to force gedit to run each window in a separate process?

With Ubuntu and Gnome classic desktop, sometimes I have separate windows of gedit open on different workspaces. Since the program has its flaws and can be easily choked, for example by trying to undo ...
Radio Controlled's user avatar
0 votes
1 answer
2k 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, ...
Opifex's user avatar
  • 420
1 vote
0 answers
1k 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 ...
aldr's user avatar
  • 123
3 votes
1 answer
1k 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 ...
futureishere's user avatar
1 vote
2 answers
7k 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. ...
user3486308's user avatar
2 votes
0 answers
592 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 ...
Max Williams's user avatar
  • 1,117
1 vote
0 answers
79 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 ...
argle's user avatar
  • 523
0 votes
0 answers
85 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 ...
glarry's user avatar
  • 924
2 votes
2 answers
981 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'...
user avatar
2 votes
1 answer
575 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 ...
user avatar
1 vote
0 answers
564 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 ...
Raphael's user avatar
  • 2,065
1 vote
1 answer
1k 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),...
Billal Begueradj's user avatar
3 votes
3 answers
2k 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....
Atcold's user avatar
  • 1,603
2 votes
0 answers
2k 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 ...
Marcus S O'Flaherty's user avatar
1 vote
1 answer
90 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'...
docwebhead's user avatar
-1 votes
1 answer
92 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 ...
Léo Léopold Hertz 준영's user avatar
15 votes
2 answers
11k 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 ...
i7pj3qnuz's user avatar
  • 421
5 votes
2 answers
9k 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 ...
Nanashi No Gombe's user avatar
1 vote
2 answers
566 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/...
LagarLagar's user avatar
1 vote
3 answers
4k 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 ...
nightcod3r's user avatar
2 votes
0 answers
1k 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 ...
user3250335's user avatar
8 votes
2 answers
6k 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:...
rugk's user avatar
  • 3,216
0 votes
1 answer
1k 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
Léo Léopold Hertz 준영's user avatar
1 vote
1 answer
3k 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 ...
Severus Tux's user avatar
  • 1,035
1 vote
0 answers
170 views

Custom syntax highlighting misbehaving in gedit

For 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 ...
Alex Clough's user avatar
2 votes
1 answer
451 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 ...
user189035's user avatar
2 votes
1 answer
241 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 ...
Phil Crow.w's user avatar
1 vote
1 answer
667 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?
henry's user avatar
  • 914
2 votes
0 answers
518 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 ...
parsecpython's user avatar
1 vote
1 answer
8k 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 ...
XavierStuvw's user avatar
  • 1,139