Hi Bram,

On Wed, Jan 3, 2018 at 6:46 AM, Bram Moolenaar <b...@moolenaar.net> wrote:
>
> Yegappan wrote:
>
>> I am attaching a patch to add the neighbor window information to the
>> getwininfo() function. It returns the window ID of the windows above,
>> right, below and left of the specified window. If a neighbor window
>> is not present, then it is set to 0.
>
> Hmm, this seems too restricted to get info about the window layout and
> too much info for one window.  What if a window has two other windows on
> a side?
>

This returns the neighbor windows that will be used by the CTRL-W k,
CTRL-W l, CTRL-W j and CTRL-W h commands. For a leftmost window
that covers the entire height of the Vim window, this will return [0, n, 0, 0].
For a topmost window, this will return [0, 0, n, 0], etc. This information
can be used to determine the location of a window relative to other windows.

I also have another patch that returns the entire window layout information (as
described in the other e-mail thread). But it is difficult to get the neighbor
window information from the window layout directly.

Regards,
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui