I use Code::Blocks as C and C++ text editor to have code completion, without creating a project.
Whenever I open a file from a file manager (or using xdg-open), it reopens all the tabs I closed in the current session, it's very annoying.
And it's even more annoying that the focused tab is not the file I opened, but something else.
Is there a way to disable this behavior?
I expect that it opens just a single tab - the requested file, not all other closed tabs.
I'm on Ubuntu, I don't have Windows.