{"action":"created","issue":{"url":"https://api.github.com/repos/vim/vim/issues/833","repository_url":"https://api.github.com/repos/vim/vim","labels_url":"https://api.github.com/repos/vim/vim/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/vim/vim/issues/833/comments","events_url":"https://api.github.com/repos/vim/vim/issues/833/events","html_url":"https://github.com/vim/vim/pull/833","id":156188623,"number":833,"title":"Add functions to get information about buffers, windows and tabpages","user":{"login":"yegappan","id":4298407,"avatar_url":"https://avatars.githubusercontent.com/u/4298407?v=3","gravatar_id":"","url":"https://api.github.com/users/yegappan","html_url":"https://github.com/yegappan","followers_url":"https://api.github.com/users/yegappan/followers","following_url":"https://api.github.com/users/yegappan/following{/other_user}","gists_url":"https://api.github.com/users/yegappan/gists{/gist_id}","starred_url":"https://api.github.com/users/yegappan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegappan/subscriptions","organizations_url":"https://api.github.com/users/yegappan/orgs","repos_url":"https://api.github.com/users/yegappan/repos","events_url":"https://api.github.com/users/yegappan/events{/privacy}","received_events_url":"https://api.github.com/users/yegappan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-23T02:19:49Z","updated_at":"2016-06-05T22:12:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vim/vim/pulls/833","html_url":"https://github.com/vim/vim/pull/833","diff_url":"https://github.com/vim/vim/pull/833.diff","patch_url":"https://github.com/vim/vim/pull/833.patch"},"body":"Add the getbufinfo(), getwininfo() and gettabinfo() functions to get information about\r\nthe list of buffers, windows and tabpages respectively."},"comment":{"url":"https://api.github.com/repos/vim/vim/issues/comments/223841048","html_url":"https://github.com/vim/vim/pull/833#issuecomment-223841048","issue_url":"https://api.github.com/repos/vim/vim/issues/833","id":223841048,"user":{"login":"vim-ml","id":11653528,"avatar_url":"https://avatars.githubusercontent.com/u/11653528?v=3","gravatar_id":"","url":"https://api.github.com/users/vim-ml","html_url":"https://github.com/vim-ml","followers_url":"https://api.github.com/users/vim-ml/followers","following_url":"https://api.github.com/users/vim-ml/following{/other_user}","gists_url":"https://api.github.com/users/vim-ml/gists{/gist_id}","starred_url":"https://api.github.com/users/vim-ml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vim-ml/subscriptions","organizations_url":"https://api.github.com/users/vim-ml/orgs","repos_url":"https://api.github.com/users/vim-ml/repos","events_url":"https://api.github.com/users/vim-ml/events{/privacy}","received_events_url":"https://api.github.com/users/vim-ml/received_events","type":"User","site_admin":false},"created_at":"2016-06-05T22:12:59Z","updated_at":"2016-06-05T22:12:59Z","body":"Hi,\n\nOn Sun, Jun 5, 2016 at 11:46 AM, Yegappan Lakshmanan\n<yegappanl@gmail.com> wrote:\n>>\n>> Yegappan Lakshmanan wrote:\n>>\n>> > Add the getbufinfo(), getwininfo() and gettabinfo() functions to get\n>> > information about\n>> > the list of buffers, windows and tabpages respectively.\n>>\n>> Thanks.\n>>\n>> I would like to invite everybody to review these new functions. Is this\n>> the right way to get the information?\n>>\n>> For getbufinfo() I think it would be useful to be able to specify\n>> whether unlisted buffers are included. That reflects adding \"!\" to\n>> \":buffers\".\n>>\n>> gettabinfo() should return a list of window IDs.\n>>\n>> getwininfo() should accept a window ID instead of a window nr.\n>> See win_getid() and win_id2win(). The window ID is more useful than the\n>> window nr, since the nr changes for every layout change.\n>>\n>> I do not like how options are added. The list will soon get outdated.\n>> It should be possible to go over the list of all options and use the\n>> ones that are local to a window or buffer.\n>>\n>\n> I am trying to use the list of options from option.c to get only the window\n> local options by checking for (var == VAR_WIN).\n>\n> I noticed that for the 'statusline' option, the var field in vimoption\n> is not set to VAR_WIN. For all the other window local options, var is set\n> to VAR_WIN. Is this intentional or is it a bug?\n>\n\nI figured out why the 'statusline' option is set up this way (as it is a\nglobal or local to window option and it is the only option with this\nproperty). You can ignore this question.\n\n- Yegappan\n"}}
{"actor":{"display_login":"vim-ml"}}