On Tue, Dec 17, 2024 at 2:51 AM Liu Hui wrote: > > > 在 2024/12/16 19:56, Nicolas Desprès 写道: > > [...] So it seems unnecessary to compare the width and height. How about > adding an option, e.g. split-window-preferred-direction, and change > the condition as follows? > > if user prefers horizontal split > try to split horizontally, then try to split vertically > else > try to split vertically, then try to split horizontally > > I think the longest choice is still needed for setup with one frame on a portrait screen and another one on a landscape screen. -Nico