How to open file in separate xed and not in tab

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
bradrar
Level 2
Level 2
Posts: 54
Joined: Sun Aug 19, 2018 2:48 am

How to open file in separate xed and not in tab

Post by bradrar » Mon Apr 08, 2019 2:47 pm

Whenever I open multiple .txt files, It automatically opens in new tab of the text editor.

How can I make it not open in tab. but a new text editor app. because I am not used to tabs.

pbear
Level 6
Level 6
Posts: 1426
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: How to open file in seperate xed and not in tab

Post by pbear » Mon Apr 08, 2019 3:19 pm

Which version and desktop? Is this xed or have you installed another text editor? Opening as user or with root privileges?

FWIW, playing around with xed in Mate 19.1, I can't find a way to do what you want. Not conclusive it can't be done, though.
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

User avatar
karlchen
Level 20
Level 20
Posts: 11039
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: How to open file in separate xed and not in tab

Post by karlchen » Mon Apr 08, 2019 3:35 pm

Hello, bradrar.

xed --new-window will open a new xed application window instead of a new tab in an already started xed instance.

Example:
xed --new-window ~/.bashrc
xed --new-window ~/.bash_history
will launch two instances of xed. One will display ~/.bashrc. One will display ~/.bash_history.

In case you would like to make "open new window" the default, you could launch the Mint menu editor and change the Xed launcher and add the option --new-window to the command, which launches xed.

HTH,
Karl
Image
Linux Mint 19.2 32-bit xfce Desktop, Total Commander 9.22a 32-bit
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.22a 64-bit
Windows? - 1 window in every room

User avatar
kevin987
Level 4
Level 4
Posts: 346
Joined: Fri Dec 11, 2015 12:35 pm

Re: How to open file in separate xed and not in tab

Post by kevin987 » Mon Apr 08, 2019 7:54 pm

karlchen wrote:
Mon Apr 08, 2019 3:35 pm
Hello, bradrar.

xed --new-window will open a new xed application window instead of a new tab in an already started xed instance.

Example:
xed --new-window ~/.bashrc
xed --new-window ~/.bash_history
will launch two instances of xed. One will display ~/.bashrc. One will display ~/.bash_history.

In case you would like to make "open new window" the default, you could launch the Mint menu editor and change the Xed launcher and add the option --new-window to the command, which launches xed.

HTH,
Karl
Hi Karl,

Is there a way to make it work like it does in Mint 17 for instance:

Xed window is open, and choosing File --> New (or Open) creates a new tab, the same as Mint 19.

Right clicking a file from inside Nemo --> Open with Text Editor, it creates a new Xed window. Mint 19 it creates a new tab if a Xed window is already open.
Linux Mint 19.1 (Cinnamon)
LMDE 3 (Cinnamon)
GeckoLinux 150 (Cinnamon)

User avatar
Flemur
Level 16
Level 16
Posts: 6990
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to open file in separate xed and not in tab

Post by Flemur » Mon Apr 08, 2019 8:02 pm

kevin987 wrote:
Mon Apr 08, 2019 7:54 pm
karlchen wrote:
Mon Apr 08, 2019 3:35 pm
In case you would like to make "open new window" the default, you could launch the Mint menu editor and change the Xed launcher and add the option --new-window to the command, which launches xed.
HTH,
Karl
Is there a way to make it work like it does in Mint 17 for instance:
Xed window is open, and choosing File --> New (or Open) creates a new tab, the same as Mint 19.
Right clicking a file from inside Nemo --> Open with Text Editor, it creates a new Xed window. Mint 19 it creates a new tab if a Xed window is already open.
That is what karlchen just described for you. And you could get the info about "--new-window" by typing

Code: Select all

man xed
https://www.mankier.com/1/xed
"man" = a very goofy name for "help" = "manual".

Also probably

Code: Select all

xed --help
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
kevin987
Level 4
Level 4
Posts: 346
Joined: Fri Dec 11, 2015 12:35 pm

Re: How to open file in separate xed and not in tab

Post by kevin987 » Mon Apr 08, 2019 8:16 pm

Thanks Flemur.

I didn't want to apply that if it meant opening a new Xed window, instead of a new tab, while using the New / Open function inside an already established Xed window.
Linux Mint 19.1 (Cinnamon)
LMDE 3 (Cinnamon)
GeckoLinux 150 (Cinnamon)

User avatar
karlchen
Level 20
Level 20
Posts: 11039
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: How to open file in separate xed and not in tab

Post by karlchen » Tue Apr 09, 2019 4:00 am

Hi, kevin987.
kevin987 wrote:
Mon Apr 08, 2019 7:54 pm
Is there a way to make it work like it does in Mint 17 for instance:
Hm. If I remember right, xed has been introduced by Mint 18, not by Mint 17. This would mean that on Mint 17 you must have used a different editor, depending on your desktop environment very likely:
+ Cinnamon - gedit (default)
+ Mate - pluma (default)
+ xfce - no real default, personally used either gedit or mousepad

Cannot remember what the default behaviour of these editors was on Mint 17: preferring "new tab" over "new window". Would have to launch my old live systems to find out.
kevin987 wrote:
Mon Apr 08, 2019 7:54 pm
Right clicking a file from inside Nemo --> Open with Text Editor, it creates a new Xed window. Mint 19 it creates a new tab if a Xed window is already open.
I have not bothered to try, yet. So I am not sure whether changing the Xed launcher file (xed.desktop) to include the "--new-window" option will change the Nemo context menu item to include the option "--new-window" as well. Maybe a new Nemo action has to be created in order to achieve this goal.
I admit I do not know.

Best regards,
Karl
Image
Linux Mint 19.2 32-bit xfce Desktop, Total Commander 9.22a 32-bit
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.22a 64-bit
Windows? - 1 window in every room

User avatar
kevin987
Level 4
Level 4
Posts: 346
Joined: Fri Dec 11, 2015 12:35 pm

Re: How to open file in separate xed and not in tab

Post by kevin987 » Tue Apr 09, 2019 6:43 am

You are right Karl, it's gedit with Mint 17. This is for Cinnamon for both 17 and 19.

A new tab opens when choosing File --> New (or Open) in the gedit window. Which is great.

A new gedit window opens when double-clicking, or right-clicking to open a file when using Nemo.

I believe the goal is to have the same behavior with Mint 19 xed.
Linux Mint 19.1 (Cinnamon)
LMDE 3 (Cinnamon)
GeckoLinux 150 (Cinnamon)

Post Reply

Return to “Newbie Questions”