Michael Henry wrote:
> On 08/17/2016 01:58 PM, Yegappan Lakshmanan wrote:
> > On Wed, Aug 17, 2016 at 4:12 AM, Michael Henry <[email protected]>
> wrote:
> >> I'd like functions that:
> >>
> >> - Return True if a given window is a QuickFix or Location List
> >> window.
> >> [...]
> >
> > The new getwininfo() function can be used to distinguish between
> > the quickfix and location list windows. Check the 'quickfix' and the
> > 'loclist' keys in the returned dictionary.
> > [...]
> >
> > The getqflist() function returns the window ID of the quickfix window
> > (if it is opened). You can check for this.
> > [...]
> > You can use the getqflist() and getloclist() functions for these.
> >
> > - Yegappan
>
> Thanks, Yegappan, that's very helpful. I think these extensions
> will make things much smoother.
>
> I was trying to find something in the help regarding the meaning
> of a "window id". Though there are several functions that
> accept and return these, I can't find anything that defines
> them.
>
> Perhaps the help could contain a definition of window ID that
> answers these questions:
It exists in windows.txt. There is no tag, I'll add one.
> - How does a window ID differ from a window number?
>
> - Since getloclist() accepts either a window number or a window
> ID for the first argument, these two number spaces must be
> non-overlapping; how does Vim ensure this property?
>
> - Are window IDs unique across tab pages?
>
> - Are window IDs more permanent in some way than window numbers?
> For example, if I rearrange the windows in a tab page, do the
> window numbers change but the window IDs remain the same?
> That empirically seems to be the case when I move the QuickFix
> window around within a tab page; is this guaranteed? The
> window id empirically changes when closing and reopening the
> QuickFix window and when moving the QuickFix window to another
> tab; does that mean that the window ID stays the same until
> the window is closed?
>
> Also, in the help for getwininfo() (vim 7.4.2222) is this
> sentence:
>
> """
> Without an information about all the windows in all the tab
> pages is returned.
> """
>
> Should that start with "Without {winid}, information about..."?
I'll correct that.
--
hundred-and-one symptoms of being an internet addict:
32. You don't know what sex three of your closest friends are, because they
have neutral nicknames and you never bothered to ask.
normal GA<CR><Esc>
/// Bram Moolenaar -- [email protected] -- 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 ///
--
--
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.