Hi, On Wed, Dec 27, 2017 at 11:47 AM, Christian J. Robinson <[email protected]> wrote: > On Wed, 27 Dec 2017, Yegappan Lakshmanan wrote: > >> If there is only one window in the tab page, then this function will >> return a list with a window identifier. >> >> If there is more than one window in the tab page, then this function will >> return a list where the first item is either "row" (for vertically split >> windows) or "col" (for horizontally split windows). The second item is a >> list of window identifiers or additional lists. >> >> For example, for two horizontally split windows, this function will return >> ['col', [1000, 1001]] >> >> For two vertically split windows, this function will return ['row', [1000, >> 1001]] >> >> For three horizontally split windows, with two vertically split windows in >> the middle window, this function will return: >> ['col', [1002, ['row', [1003, 1001]], 1000]] >> >> Do you think this function will be useful? > > > I do like this idea, as I've wanted something like it in the past. >
The above function returns a List representation of the internal Vim frame tree data structure used for tab pages/windows. > > But I also think a corresponding function that can take lists like this and > re-create the layout would be useful. > To re-create the layout, the window width and height information is also needed. The above function returns only the window identifier. Of course it can be modified to return this detail also. I will wait comments from Bram and others also. - Yegappan -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
