Bug 505804 - FEATURE REQUEST - layout save/load should respect size of views
Summary: FEATURE REQUEST - layout save/load should respect size of views
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: split-view (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-19 18:29 UTC by Dmitry L.
Modified: 2025-06-19 18:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch: add currentSplitterId and currentViewId DBUS methods (1.91 KB, patch)
2025-06-19 18:29 UTC, Dmitry L.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry L. 2025-06-19 18:29:32 UTC
Created attachment 182400 [details]
patch: add currentSplitterId and currentViewId DBUS methods

Hello!

It is actually is not a bug.

I'd like to restore saved layout with sizes it was saved. Currently it is only saves views (vertical or horizontal split).

As I see there is DBUS method which could be used to resize splits: org.kde.konsole.Window.resizeSplits.
And it requires Splitter ID and sizes (percentages).
But it is useless until there are no methods to retrieve current Splitter ID.

Also there are some number of methods which require View ID.

Here is the patch which adds currentSplitterId and currentViewId methods.
Hope it will be useful.

So, I open konsole and run script to setup layout (with required sizes).

PS made patch on v25.04.2 tag (2055fba96d88dbde92cdec83a146ac49c997a61e).