<div dir="ltr">Hi,<div><br></div><div>Here attached are 2 small patches I just made to improve the scriptability of konsole, each by adding a new qdbus method</div><div><br></div><div>One is adding a method to list the tabs (sessions) ids of a window</div><div>The other adds a method to set the current tab of a window (by its id)</div><div><br></div><div>You can also find them in my Github fork<br><a href="https://github.com/tardypad/konsole/commit/64b0b399383fed4e8b0f2f32a4a34f92974f9781" target="_blank">https://github.com/tardypad/konsole/commit/64b0b399383fed4e8b0f2f32a4a34f92974f9781</a><br><a href="https://github.com/tardypad/konsole/commit/ee4da09d92e81dbef5ec9d71a447e5d01fc2d43e" target="_blank">https://github.com/tardypad/konsole/commit/ee4da09d92e81dbef5ec9d71a447e5d01fc2d43e</a><br><br>The motivation behinds them was the following:<br>I have global shortcuts on my environment executing a script to automatically switch, in my main konsole window, to a specific tab by title</div><div>With the currently available qdbus options I had no choice but to cycle through the tabs with the nextSession method and check the currentSession title.</div><div>(if interested, this can be found there: <a href="https://github.com/tardypad/dotfiles/blob/master/zsh/zsh/scripts/goto_local_session#L70" target="_blank">https://github.com/tardypad/dotfiles/blob/master/zsh/zsh/scripts/goto_local_session#L70</a>)<br>The main problem of that approach is that each tab gets displayed shortly successively and it looks horrible :/</div><div><br>Those new added methods will make this better and simpler.</div><div>And I believe they are generic enough to be useful for similar scripting purposes by other people.<br><br>Let me know what you think and if you prefer me to send those patches as a "bug" report in <a href="http://bugs.kde.org" target="_blank">bugs.kde.org</a>, or any other way.<br><br>Thanks<br><br>Regards,<br>Damien</div></div>