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

From: Nick <suckless-dev_AT_njw.me.uk>
Date: Fri, 6 Jul 2012 11:47:44 +0100

On Fri, Jul 06, 2012 at 12:06:53PM +0200, Troels Henriksen wrote:
> I'm not sure what you mean by insert mode. 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()")
> },
>
> Creating the keybindings themselves in Javascript is brittle and bad.

If this is true, please can you update the page
http://surf.suckless.org/files/link_hints with how it *should* be
done? I suspect quite a few people use the keyboard hint
navigation from that page. I do, and it is somewhat brittle (doesn't
always fire) - I wonder if this solution fixes that.
Received on Fri Jul 06 2012 - 12:47:44 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 06 2012 - 13:00:08 CEST