Patch to add the bufferlist() function

83 views
Skip to first unread message

Yegappan Lakshmanan

unread,
May 5, 2013, 9:36:24 PM5/5/13
to vim...@googlegroups.com
Hi all,

The attached patch introduces a new bufferlist() function which returns a List
of buffers. Each list item is a dictionary containing the buffer attributes.
This function will be useful for plugin developers. The patch is
against 7.3.905.

We can extend this function in the future to return more information about
the buffers.

- Yegappan
bufferlist.diff

Bram Moolenaar

unread,
May 5, 2013, 9:50:50 PM5/5/13
to Yegappan Lakshmanan, vim...@googlegroups.com
Thanks, I'll add it in the todo list.

--
ARTHUR: Right! Knights! Forward!
ARTHUR leads a charge toward the castle. Various shots of them battling on,
despite being hit by a variety of farm animals.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Yegappan Lakshmanan

unread,
May 17, 2013, 9:15:32 PM5/17/13
to vim...@googlegroups.com
Hi,

On Sun, May 5, 2013 at 6:50 PM, Bram Moolenaar <Br...@moolenaar.net> wrote:
>
> Yegappan Lakshmanan wrote:
>
>> The attached patch introduces a new bufferlist() function which
>> returns a List of buffers. Each list item is a dictionary containing
>> the buffer attributes. This function will be useful for plugin
>> developers. The patch is
>> against 7.3.905.
>>
>> We can extend this function in the future to return more information about
>> the buffers.
>
> Thanks, I'll add it in the todo list.
>

I have added two more functions: winlist() and tabpagelist(). The updated
diff is attached.

- Yegappan
bufwintablist.diff

Yegappan Lakshmanan

unread,
May 19, 2013, 7:22:46 PM5/19/13
to vim...@googlegroups.com
Hi all,

>>
>>> The attached patch introduces a new bufferlist() function which
>>> returns a List of buffers. Each list item is a dictionary containing
>>> the buffer attributes. This function will be useful for plugin
>>> developers. The patch is
>>> against 7.3.905.
>>>
>>> We can extend this function in the future to return more information about
>>> the buffers.
>>
>> Thanks, I'll add it in the todo list.
>>
> I have added two more functions: winlist() and tabpagelist(). The updated
> diff is attached.
>

I have added the buffer/window/tabpage local variables to the returned list.
bufwintablist.diff

Yegappan Lakshmanan

unread,
May 29, 2013, 12:28:39 AM5/29/13
to vim...@googlegroups.com
Hi,
I have updated the functions to also return buffer/window/tabpage options.
The functions are renamed to bufinfo(), wininfo() and tabpageinfo().
The functions
can also be used to query information about a single buffer/window/tabpage.

- Yegappan
bufwintablist.diff

Yegappan Lakshmanan

unread,
Apr 11, 2016, 1:08:36 AM4/11/16
to vim_dev
Hi all,

This patch implements the getbufinfo(), gettabinfo() and getwininfo()
functions. I have updated the patch to the latest Vim and also added
a test.

- Yegappan

On Tue, May 28, 2013 at 9:28 PM, Yegappan Lakshmanan
bufwintablist.diff
Reply all
Reply to author
Forward
0 new messages