Hi Christian, On Wed, Jun 8, 2016 at 11:16 PM, Christian Brabandt <[email protected]> wrote: > Hi Yegappan, > > good to see some work on this. Just some quick notes. >
Thanks for reviewing this. > > Am 2016-06-09 05:29, schrieb Yegappan Lakshmanan: >> >> Hi all, >> >> I have created the following new functions to return information >> about buffers, windows and tabpages. >> Pull request: https://github.com/vim/vim/pull/833 >> >> 1. Function: getbufinfo([{expr}]) >> >> Returns information about all the buffers as a List of dictionaries. >> If {expr} is supplied, then the information about the buffer >> specified by {expr} is returned as a Dict. If {expr} is not supplied, >> then information about all the buffers is returned. >> >> Each returned list item is a dictionary with the following entries: >> >> changed TRUE if the buffer is modified. >> changedtick number of changes made to the buffer. >> hidden TRUE if the buffer is hidden. >> listed TRUE if the buffer is listed. >> lnum current line number in buffer. >> loaded TRUE if the buffer is loaded. >> name full path to the file in the buffer. >> nr buffer number. >> options dictionary of buffer local options. >> variables dictionary of buffer local variables. > > > What about a list of window ids, in which the buffer is shown? > I will add this. This might be a slightly expensive operation as all the windows need to be inspected for each buffer. > >> >> Function: getbufinfo([{dict}]) >> Returns information about all the buffers matching the criteria >> specified in the {dict} dictionary. The following keys can be >> specified in {dict}: >> >> buflisted include only listed buffers. >> bufloaded include only loaded buffers. > > > How about bufname like filtering? > If you need the information about a specific buffer, you can use getbufinfo(<bufname>). > >> >> 2. Function: getwininfo([{win_id}]) >> >> Returns information about all the windows as a List. If {win_id} is >> not supplied, then information about all the windows in all the tab >> pages is returned as a List. If {win_id} is supplied, then >> information about the window with ID {win_id} is returned as a Dict. >> Each list item is a dictionary with the following entries: >> >> nr window number. >> tpnr tab page number. >> winid window ID. >> height window height. >> width window width. >> bufnum number of buffer in the window. >> options dictionary of window local options. >> variables dictionary of window local variables. > > > perhaps a list of dicts with the relevant information for signs, shown in > the window? > I will add this (already have the changes). 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
