+3

API: Ability to change window layout

David Baumgold 6 years ago • updated 6 years ago 2
I wanted to implement a plugin to get a split-screen view into the current file I was editing, and discovered that there is no way to change the window layout of the current window. Can you add this to the API? And ideally, implement a plugin with a TextCommand equivalent of File -> New View Into File, but splitting either vertically or horizontally so that both views are visible?
This already exists: window.set_layout, although it doesn't seem to be documented. Search the default keybinding for "set_layout" to get an idea how it works, or use menu item "view->Layout->whatever".
Thanks, Fredrik! In that case, I officially change the request in this ticket to be for the API to be documented. :)