Gedit ignores the workspace feature

Running Ubuntu 22.04 with ubuntu-mate-desktop added.

When you right-click on a file to open it with gedit,
you want the file to be opened in the current workspace.
Instead the file is opened in the most recently instance of gedit
which is typically in another workspace.
You have to find the workspace where the file is opened and then
separate it to a new window which is moved to the correct workspace.

There are settings in "/usr/share/applications/org.gnome.gedit.desktop"
You can add "-s" to open it in the current workspace, but then you
always open a new window. I.E: One window per file which is undesirable

gedit should always open in the current workspace.
It that means opening a new instance, so be it.
You should be able to have tabbed gedit.

1 Like

Welcome @ulf to the community!

Pluma is the default text editor on Mate. What does Pluma do when you open it?

Here's an idea: If you set the text editor to always open in a new window, you can double-click the file to do just that. If you want to open the file in a new tab instead, simply drag the file onto the open text editor window. It will open in a new tab.

I think gedit's behaviour that you describe is intentional. You can use Pluma, that does not have tabs, you always open a new window.