Re: [dev] [surf] eval() not needed?

From: <stanio_AT_cs.tu-berlin.de>
Date: Fri, 6 Jul 2012 12:24:34 +0200

* Troels Henriksen <athas_AT_sigkill.dk> [2012-07-06 12:06]:
> stanio_AT_cs.tu-berlin.de writes:
>
> > * Troels Henriksen <athas_AT_sigkill.dk> [2012-07-06 09:31]:
> I'm not sure what you mean by insert mode.

the insert mode patch would let you have 2 modes of ui:
- in normal mode, keystrokes are interpreted as if you were holding
  MODKEY pressed, even if you don't, i.e. are not passed through, and
  you can't type in to text fields, for instance, but you can use
  j,k,l,h,p without MODKEY;
- in insert mode, your keystrokes are passed through unless you
  explicitly hold MODKEY, i.e. for navigation you need to hold MODKEY
  before typing hjkl.

> I use eval() for
> Conkeror-style numbered link navigation. The actual logic is defined in
> Javascript in my script.js, and I have the following bindings in my
> config.h:
>
> { CTRL, GDK_f, eval, STRING("hintMode()") },
> { CTRL|SHIFT, GDK_f, eval, STRING("hintMode(true)") },
> { CTRL, GDK_c, eval, STRING("removeHints()")
> },

That's great, thank you.

--s_
Received on Fri Jul 06 2012 - 12:24:34 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 06 2012 - 12:36:05 CEST