Page 1 of 1

How to open file in separate xed and not in tab

Posted: Mon Apr 08, 2019 2:47 pm
by bradrar
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.

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

Posted: Mon Apr 08, 2019 3:19 pm
by pbear
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.

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

Posted: Mon Apr 08, 2019 3:35 pm
by karlchen
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

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

Posted: Mon Apr 08, 2019 7:54 pm
by kevin987
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.

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

Posted: Mon Apr 08, 2019 8:02 pm
by Flemur
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

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

Posted: Mon Apr 08, 2019 8:16 pm
by kevin987
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.

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

Posted: Tue Apr 09, 2019 4:00 am
by karlchen
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

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

Posted: Tue Apr 09, 2019 6:43 am
by kevin987
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.