[Vimperator] Disable vimperator on some domains
Viktor Kojouharov
vkojouharov at gmail.com
Tue Nov 13 05:53:08 PST 2007
В вт, 2007-11-13 в 13:59 +0100, Martin Stubenschrott написа:
> On Tue, Nov 13, 2007 at 01:15:06PM +0100, calmar wrote:
> > But I think, its something for autocommands (commands what
> > get triggered on events like when you switch tabs) - and those
> > autocommands aren't implemented yet.
>
> It definitly is, _when_ we have it, you will be able to _something_ like:
>
> autocommand TabSelect * function() { if (/gmail|othersite/.test(vimperator.buffer.URL)) vimperator.options.setLocal("disablekeys", true) }
We could just skip the function() {} and eval what's inside.
> I know it differs from vim's behavior which autocommand is an
> ex-command, but since we lack control statements in our
> vimperator-script language, we have to fall back to using javascript,
> which makes the code of course more verbose.
I thought vimperator-script will just be javascript inside the
vimperator namespace?
>
> However, as much as i would really like autocommands, they are non
> trival, and will take at least some months, unless a really brave one
> stands up :)
>
I'd really love to tackle autocommands, but this lack of free time is
really troublesome. And I doubt it would take a couple of months.
> --
> Martin
> _______________________________________________
> Vimperator mailing list
> Vimperator at mozdev.org
> http://www.mozdev.org/mailman/listinfo/vimperator
More information about the Vimperator
mailing list