Questions tagged [gedit]

gedit is a text editor for the GNOME desktop environment, not to be confused with GNOME Text Editor (gnome-text-editor) released with GNOME 42

Filter by
Sorted by
Tagged with
0 votes
1 answer
399 views

How to search or append a word in text file using gedit and terminal commands only

I have to calculate the time consumed in search and append operation in gedit text editor. I know that I can calculate time in any command operation by using prefix time in that command like time ls ...
Manoj Kumar's user avatar
1 vote
2 answers
457 views

Location of the created using gedit

I have installed Ubuntu app on Windows 10 and also installed gedit. After I create a file using gedit, I want to access it through the File Explorer. Where can I find it?
Ratandeep Arunkumar's user avatar
0 votes
0 answers
377 views

gedit and gpg: just want to protect my text file

i've been writing into a text file, using gedit. today i decided it will be a good idea to password protect it. i've searched quite a bit on google, and finally came up with this solution, which ...
ariel t's user avatar
1 vote
2 answers
917 views

gedit open second file onwards in a new window. Ubuntu 19.10

In Ubuntu 18.04 when I open a second text file, it opens in a new window out of the box. In Ubuntu 19.10 when I open a second text file, it opens in the existing window with new tab. I have tried ...
PRATAP's user avatar
  • 22.5k
1 vote
2 answers
4k views

How to open a text file in current working directory with `gedit admin://`?

The following terminal command will open the text file ubuntu.css from any location of a file structure: $ gedit admin:///usr/share/gnome-shell/theme/ubuntu.css However, if I am already in directory ...
Sun Bear's user avatar
  • 2,252
1 vote
1 answer
2k views

Gedit bash highlight

When I edit bash script(first line is #!/bin/bash) in GEdit, there is no highlighting. But with View->Highlight Mode, there is no result when searching "bash" or "script", which to choose?
jw_'s user avatar
  • 313
3 votes
1 answer
937 views

Changing keyboard shortcuts in gedit

There's no way to change the shortcuts from the GUI or with a plugin, which is odd because there are ways to tweak far less important features. Every similar question about this topic is from years ...
Grey's user avatar
  • 61
2 votes
2 answers
4k views

Invalid Characters trying to open text file created in notepad with Gedit

Related question - except I'm moving from Windows to Ubuntu (don't need Windows notepad) I am trying to open a text file using gedit/Ubuntu 16.04 that was created in Windows using the apparently ...
Surveyor's user avatar
0 votes
0 answers
516 views

gedit: Clipboard content gets pasted into text being edited without user warning

gedit is pasting some content (possibly clip board) into text being edited without warning me. And this happens when I am editing source code (*.f90 files) making it very dangerous. This used to ...
neco's user avatar
  • 1
3 votes
1 answer
435 views

How to revert classic GNOME decorations for gedit, nautilus etc?

I upgraded from Ubuntu 16.04 LTS (with gnome-flashback-metacity) to 18.04 LTS. I'm not very happy about the new design of window framework (see below). Is it possible to revert it back to normal?
Prokop Hapala's user avatar
2 votes
1 answer
3k views

markdown preview in gedit

I've found a plugin to preview markdown in gedit. But I am not sure if it is backdated. Is there any other better option for previewing markdown in gedit?
Arafat Hasan's user avatar
0 votes
0 answers
37 views

Problem in installation of gedit in Ubuntu18.04 LTS on Windows 10 [duplicate]

I downloaded Ubuntu from the Microsoft Store and I have installed it. I tried downloading gedit using $ sudo apt install gedit I got this problem: How do I resolve this problem? EDIT: Attempts to ...
yashwanth alapati's user avatar
8 votes
2 answers
2k views

gedit: is there a keyboard shortcut in gedit itself to insert date and time?

Note: I'm interested in knowing if there's a shortcut native to gedit itself. I'm not interested in solutions involving Autokey, etc. In gedit 3.28.1 (Ubuntu 18.04) and 3.30.0 (Ubuntu 19.04), if I ...
DK Bose's user avatar
  • 42.4k
2 votes
2 answers
256 views

gedit code to embed current date within the file

Does the gedit editor have a code to automatically embed the current date when I save a file? I don't always remember to edit my "last updated" comment in the file.
user avatar
1 vote
0 answers
50 views

Path completion for gEdit

Is there any gedit plugin for path completion? or there is already implemented without any need to install completion?
sugab's user avatar
  • 4,367
2 votes
1 answer
294 views

How do I spellcheck Arabic in Gedit?

How can I spellcheck text files that contain Arabic text? The answer in Adding languages to gedit spellchecker recommends installing a myspell dictionary, but no such dictionary seems to exist for ...
Tenders McChiken's user avatar
1 vote
1 answer
163 views

GEdit - Python Console plugin not retaining color settings

I was just fiddling around with GEdit and came across the Python Console in plugins section of it. It would have been quite useful to do quick calculations while taking notes as I sometimes have to ...
thewebjackal's user avatar
10 votes
2 answers
2k views

Can there ever be any problem when using gedit to edit system files with 'sudo -H gedit'?

I am relatively new to Ubuntu, I noticed that in answers on this site, when people suggest editing system files, the command they give is always sudo nano or sudo vi. Because I dislike using terminal ...
shinobody's user avatar
  • 358
5 votes
0 answers
89 views

Can I make Gedit not ask to save a blank file?

If you type something in Gedit then erase it and try to close Gedit, it will ask if you want to save the file, even though it's blank. Is there a way to avoid this? Notepad++ and Atom for example do ...
wjandrea's user avatar
  • 14.2k
-1 votes
1 answer
1k views

How to edit a file that has a space in its name? [duplicate]

I'm on Ubuntu 18.04. If I go into my home directory and right-click and select "new document" and then "empty document", a new file appears called "Untitled Document". Now I want to edit what's in ...
Zebrafish's user avatar
  • 107
2 votes
1 answer
333 views

gedit – Location on disk of profiles' settings

I created two new profiles in Text Editor (gedit) with custom colors. I'd like to backup those settings. There is nothing related to profiles, for example, in ~/.config/gedit/ or ~/.local/share/gedit/...
Daniel's user avatar
  • 3,960
2 votes
1 answer
2k views

Is there a way to change gedit encoding from UI?

I have a txt file that came to me from windows Gedit can't read it properly (cyrillic became garbage) So far I haven't found a way to make gedit read it by changing something from UI Gedit itself has ...
Noone AtAll's user avatar
0 votes
1 answer
945 views

How to actually overwrite when pasting from clipboard in overwrite mode

When I'm in Overwrite Mode in Sublime Text 3/gedit, normal keystrokes overwrite characters underneath the cursor. I expected that pasting from the clipboard would similarly replace characters, but ...
snwflk's user avatar
  • 123
2 votes
1 answer
4k views

Can't edit files with Gedit while other text editors do

Basically what the title says. Apparently, gedit does not have any permission to write even on basic text files which have all the permissions needed. In fact, other IDES/text editors (such as Atom or ...
cblabo's user avatar
  • 21
3 votes
2 answers
10k views

Gtk-warning cannot open display Windows Ubuntu

As a classroom for learning Unix/Linux, I'm using Microsoft's Ubuntu App in Windows 10. I want to run: gedit somefile.txt But I get the following: Failed to connect to Mir: Failed to connect to ...
KMunro's user avatar
  • 131
3 votes
0 answers
4k views

Ubuntu Gedit Text editor missing "undo last action" and "re do last action" arrows

I used to have Ubuntu Gedit text editor Version 3.10.4, with a very nice toolbar, with one icon with the shape of an arrow, dedicated to the "un-do last change" and one icon with the shape of an ...
Mario's user avatar
  • 63
10 votes
1 answer
12k views

GEdit multi-line edit on Ubuntu 18.04

The multi-line edit mode in GEdit is not working on Ubuntu 18.04. It can be activated with the combination Ctrl+Shift+C, but presently it has no consequence. The basic sanity check shows the plug-in ...
Luís de Sousa's user avatar
1 vote
0 answers
132 views

Would uninstalling Gedit be detrimental? (18.10)

I, after installing the MATE and Cinnamon desktops to my system, got Pluma recently, which is working far faster and easier for me on this computer. My question is simple; would uninstalling Gedit be ...
xTerrene's user avatar
  • 213
0 votes
1 answer
205 views

Gedit taking 20 seconds to start up on i3

I have installed i3 on my Ubuntu machine. Whenever I try to launch gedit, from command line or dmenu, there is a delay of precisely 20 seconds before it starts. During this time, it consumes no CPU so ...
Sabrina Jewson's user avatar
0 votes
2 answers
573 views

How to find /usr/bin/gedit? [duplicate]

I can open gedit using the terminal but I want to be able to open the folder that has gedit, how?
Mireodon's user avatar
0 votes
1 answer
9k views

Can't use gedit on Ubuntu App for Windows

My story is: I download Ubuntu App for Windows to use the Fenics Library, as fenicsproject.org tells. I installed Fenics Library. Now i would to create a file to write my code, but when run: gedit ...
Giovanni Febbraro's user avatar
4 votes
1 answer
2k views

My text editor has the display problem, How to fix it?

My text editor has the display problem. How to fix?
Ben's user avatar
  • 43
3 votes
1 answer
200 views

How can I go to the previous edited location on gedit?

I am trying to go to the previous edited location on gedit. I have installed the following plugin by moving files to the ~/.local/share/gedit/plugins but the plugin has the following sign on the menu: ...
my-lord's user avatar
  • 140
1 vote
0 answers
40 views

Can gedit split view to compare code like Notepad? [duplicate]

I have written two file.m, I want to compare it, in Notepad, I can use a split view in the same window.
lumw's user avatar
  • 251
16 votes
1 answer
18k views

How to select a column or block of text in gedit 3.28.1?

Is it possible to select a column or block of text in Gedit 3.28.1? The following image is with Kate 17.12.3 but shows what I want:
DK Bose's user avatar
  • 42.4k
0 votes
2 answers
14k views

(gedit:76): Gtk-WARNING

When I type gedit filename.c: Unable to init server: Could not connect: Connection refused (gedit:76): Gtk-WARNING **: 17:57:16.278: cannot open display: This is the error is displayed and those ...
Manish Kumar's user avatar
1 vote
0 answers
526 views

Ubuntu 18.04 how Gedit does Auto Indent / Auto Format my HTML document?

I have been looking for how to auto indent / auto format my HTML document using Gedit. I have just installed Ubuntu 18.04 and Gedit with a BLACK color scheme. Love Ubuntu! Love black color scheme. My ...
Carlos Eduardo Baldocchi's user avatar
5 votes
1 answer
1k views

No gedit Text Size Plugin in Ubuntu 18.04

In Ubuntu 16.04, I could open Gedit and go Preferences -> Plugins and then check the box for the Text-Size plugin, but that Plugin no longer appears in the list for the version that runs in Ubuntu 18....
Lost Crotchet's user avatar
0 votes
1 answer
3k views

gedit is crashing again and again

I am using ubuntu mate 18.04 and I installed gedit in it alongside pluma (mate default text editor) so I can manage my text notes with gedit. I was also using this setup in ubuntu 16.04, ubuntu mate ...
ShahMoeen's user avatar
  • 145
2 votes
0 answers
192 views

gedit - open files in new tabs

Is there any method to force gedit to open files in new tabs in the same window instead of a new window for each file opened? I am currently using gedit 3.28.1 on Ubuntu 18.04.
Ale's user avatar
  • 171
0 votes
1 answer
1k views

How to view ".ppk" files with gedit

When I open .ppk or .pub files (in my ~/.ssh directory), I'm unable to view the data. All I see are boxes as shown below. How do I fix this?
Brad West's user avatar
  • 111
0 votes
1 answer
346 views

gedit external tools cannot locate latexmk

I am using following in gedit external tools #!/bin/sh file=${GEDIT_CURRENT_DOCUMENT_NAME%} filename="${file%.*}" ext=${file##*.} latexmk $filename; xdg-open $filename.pdf Wheni run the command, i ...
neutrino's user avatar
1 vote
0 answers
335 views

18.04: Bracket match not found in .bashrc with Gedit or Mousepad?

OS: Ubuntu 18.04 or Kubuntu 18.04. I have Gedit 3.28.1 on both systems. While looking at .bashrc or /etc/skel/.bashrc, I found an instance of "bracket match not found" as shown in the image below in ...
DK Bose's user avatar
  • 42.4k
0 votes
1 answer
255 views

Attempt to Save As greys out window

I'm new to Ubuntu, so any help will be appreciated. When editing a file in Gedit, I can't save it to a different file name. Keying Ctrl-Shift-S causes the window to be greyed out. Same thing if I ...
AlbertinNC's user avatar
2 votes
1 answer
132 views

Prevent gedit from graying out when not in focus, in 18.04

I'm migrating from ubuntu 16.04 to 18.04 and I'm finding this extremely annoying: when gedit is not selected, its text grays out from full black to a paler shade. Is there some way to stop this ...
E.P.'s user avatar
  • 457
0 votes
0 answers
229 views

Open gedit from command-line with custom Theme and forced Highlight Mode

I need open some txt files with different themes and syntax highlights using gedit command in Ubuntu 18.04. With this, a clean startup of gedit would remain with the standard theme. Something like in ...
slava's user avatar
  • 3,887
3 votes
1 answer
87 views

Default Action for Cancel-Dialog in Gedit nearly not visible

I am getting older and my eyes see worse. If I close gedit, I can hardly see the default action which is "Save as..." Is there a way to make default actions (in all applications) more visible?
guettli's user avatar
  • 1,717
1 vote
0 answers
773 views

Can't find dkms.conf file when installing wifi driver rtl8812au

I am an old newbie who has got tired of Windows and migrated to Linux - Ubuntu 18.04 LTS. I am trying to install a wifi driver for Netgear A6100. I have found a package for rlt88au but when installing ...
bloove's user avatar
  • 11
5 votes
1 answer
2k views

How can I prevent line wrapping and instead allow horizontal scrolling in Gedit?

I am writing long lines of data to a text file using Python. But when I open the text file using gedit, I don't find that the lines that I wrote are displayed into one line each (i.e every line from ...
singrium's user avatar
  • 6,850
5 votes
1 answer
851 views

How do I increase padding in Gedit?

I would like to add some padding in the editing area in Gedit. Here is an illustration of the desired result: I have the intuition it should be easy to do with a trick similar to this one I already ...
Cédric Van Rompay's user avatar

1 2 3
4
5
19