emacs-rotate icon indicating copy to clipboard operation
emacs-rotate copied to clipboard

When there is only one window, can rotate-layout split the window?

Open cammil opened this issue 4 years ago • 1 comments

I often start with one window, and also use rotate-layout regularly. If there is one window then I would like rotate-layout to split the window. Is this possible?

It seems to me it would be kind of like a dwim function, though I may have misunderstood what dwim means, somewhat ironically.

I would be happy to attempt to contribute a PR for this if it is desired. Fair warning though, I am an elisp noob.

cammil avatar Jun 06 '20 12:06 cammil

It is a little late :) But you could wrap the rotate-layout in your own function and check the length of windows and make an educated guess to whether split or not, and then call rotate-layout.

basaran avatar Sep 22 '22 20:09 basaran