Konsole: focus next tab when tab is closed

currently, when you close a tab in konsole, focus is returned to the tab that last had focus.

this breaks the UI principles of hidden state and determinism, so i would like to change it to work more like firefox. when a tab is closed, konsole should focus the tab immediately to the right, or the one immediately to the left if the rightmost tab was the one closed.

is there any way to do this? i’m on nixos.

i would be willing to submit a PR if i was more knowledgeable with C++