Post BANjLxPWOEbV5ZUNJg by wolf480pl@mstdn.io
(DIR) More posts by wolf480pl@mstdn.io
(DIR) Post #BANjLx9DMrYmGzrLto by sjb@mstdn.io
0 likes, 0 repeats
Alright so I want Kate to open files as new tabs, but I have several windows open with different sets of tabs and it always chooses the one that's on a different screen on a different desktop and forcibly switches to it. I wish it had a setting to open a tab in the "nearest" window by some measure. #KDE
(DIR) Post #BANjLxPWOEbV5ZUNJg by wolf480pl@mstdn.io
0 likes, 0 repeats
@sjbif I understand this code correctlyhttps://invent.kde.org/utilities/kate/-/blob/master/apps/kate/main.cpp?ref_type=heads#L334-L349it opens the new tabs in the Kate instance that was last focused.Also, it seems you can use the --start CLI parameter to give different Kate instances different names, and select which one you want to interact with, though that's probably not very convenient in your case.Also I'm not sure if instance == window
(DIR) Post #BANnJtyUaqfjfb7bmK by sjb@mstdn.io
0 likes, 0 repeats
@wolf480pl No, it does not load the tab in the window that was last focussed. I tried.In this case, it put it in the same window regardless of whether it was the last focussed one.
(DIR) Post #BANoGlfZ7EIYzsL21Y by wolf480pl@mstdn.io
0 likes, 0 repeats
@sjb It's possible I'm reading it wrong, or it's a different version, or that it's subtly broken.I think it would be fun to debug why it's happening, but I'm going to bed, and tomorrow I probably won't feel like it anymore since I don't use Kate myself.
(DIR) Post #BANouenY5967Gm5pJ2 by wolf480pl@mstdn.io
0 likes, 0 repeats
@sjbbut if you wanted to debug it, I can tell you how I'd go about it and how I think it interacts with the rest of the system.