[Vimperator] Feature request: autocmd context
Martin Stubenschrott
stubenschrott at gmx.net
Mon Jul 14 12:40:29 PDT 2008
Milez wrote:
> IMHO, global variable is not good in this situation,
> as there can be a lot of PageLoad events at alsmost same time.
>
> I think it's better to pass event object to autocommands.trigger() method
> and handle it there, so autocommand run in context of tab, which
> triggered an event.
> I don't, however, think of nice way to implement it. If you have any ideas,
> they are welcomed...
I don't really understand what you are trying to say :)
The thing which bothers me is how to do the following:
:js TabClose .* :js alert("tab " + xxx + " was closed);
because it can be a background tab (once somebody implements that autocommand),
how to get the correct tab (=xxx) within the :js part of the TabClose event.
--
Martin
More information about the Vimperator
mailing list