LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2021, 01:17 PM   #1
j.young
LQ Newbie
 
Registered: Aug 2020
Posts: 15

Rep: Reputation: Disabled
gedit new window behavior


Hi,

I use gedit for a lot of text editing (code and actual text documents). It's strength is that it's simple, it's just a text editor.

But after a recent update gedit has adopted an annoying behavior: If I start gedit from the command line in one workspace, and gedit is already running in another workspace, the new gedit document appears as a new tab in the other workspace's gedit window.

On one machine this bounces me to the other workspace, and on another similar machine this actually pulls the gedit window from the other workspace to the current workspace. Neither behavior is desirable.

My distro is gentoo and my desktop is xfce. It's possible that this is an xfce problem and not a gedit problem, but gedit is the only application that seems to act this way. Although, I did try rolling back to an older version of gedit, and the problem persisted. My guess is that there's a way to customize this behavior in a configuration file, but the gedit development site is pretty sparse on this kind of advice.

I have done a lot of searching on this problem, and I did find this thread from earlier this summer where an ubuntu user had a similar problem with kate (which is a fork off gedit)

https://askubuntu.com/questions/1334...file-is-called

However, the problem was never resolved. If anyone has any ideas, I would be extremely grateful.
 
Old 08-08-2021, 06:06 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Try
Code:
gedit --new-window file-to-edit
or
Code:
gedit -s file-to-edit
or both options at once.

See What does it mean to run gedit in standalone mode?

Last edited by shruggy; 08-08-2021 at 06:09 AM.
 
Old 08-08-2021, 06:56 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by j.young View Post
It's strength is that it's simple, it's just a text editor.
...and bloated beyond compare.
Srsly if you just want a simple (GUI) text editor, try leafpad, mousepad, featherpad, or geany instead.
Chances are, the "annoying" behaviour will also go away with that.
 
Old 08-08-2021, 01:22 PM   #4
j.young
LQ Newbie
 
Registered: Aug 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
shruggy, those options open a new gedit window every time. That's really handy at times, but it's also useful to be able to have different documents in the same window. The change here is that gedit is now attaching to windows in other workspaces.

ondoho, that certainly true with respect to the gedit code. Alas, this issue is likely the developers over developing the 'features'. However, I have tried out a few other editors. leafpad doesn't have syntax highlighting (which is great for coding). geany seems actually more feature rich than gedit, for example auto completion and auto indent. I know a lot of coders really like that, but it always feels like someone's trying to type over me, hence my migration to more simplistic editors (although again I think you're right, the backend of gedit is probably pretty bloated).
 
Old 08-08-2021, 04:31 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I will add SciTE to ondoho’s list. Has syntax highlighting, good documentation of its feature configuration, runs in both Linux and Windows. I was pleasantly surprised to learn of that last when I migrated to Linux…did not have to learn a new editor.
Not sure of the bloat factor, but has always performed well for me…
 
Old 08-09-2021, 02:52 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by j.young View Post
Alas, this issue is likely the developers over developing the 'features'. However, I have tried out a few other editors. leafpad doesn't have syntax highlighting (which is great for coding). geany seems actually more feature rich than gedit, for example auto completion and auto indent. I know a lot of coders really like that, but it always feels like someone's trying to type over me, hence my migration to more simplistic editors (although again I think you're right, the backend of gedit is probably pretty bloated).
mousepad has syntax highlighting, but not much more.
 
Old 08-09-2021, 03:04 AM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
SciTE also has auto completion and auto indent out of the box, but they are both easy to turn off…

I’m one who likes them. Auto complete prompts me when I reuse a data name which helps me avoid typos. I coded for years using plain text editors and wish I had a dollar for each hour I spent debugging typos…
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing shortcut keys for gedit using /.config/gedit/accels has no impact in program charlemagne-is-my-son Linux - Software 1 12-16-2014 08:16 AM
Gnome 3, Gedit 3.0.5, when I open file with gedit, it created one more unneeded tab Mr. Alex Linux - Software 1 06-18-2011 07:58 AM
gedit iceweasel window not responding rblampain Debian 2 01-07-2008 10:41 AM
new-ish window behavior TuxLives Mandriva 3 05-16-2006 11:51 AM
gedit window launches at IPL. Why?? kphume Linux - Software 0 10-18-2004 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration