Re: [dev] surf patch: bind keystrokes to snippets of Javascript

2010-05-18 Thread Sean Whitton
Hi, On Mon, May 17, 2010 at 07:10:21PM +0200, Troels Henriksen wrote: > Here is a further improved link hinting script, which positions the > hints better when the element is broken across lines, and prevents > recursive invocations of hintMode(). (Sorry for not attaching it, but > my nearby suck

Re: [dev] surf patch: bind keystrokes to snippets of Javascript

2010-05-17 Thread Troels Henriksen
Troels Henriksen writes: > Sean Whitton writes: > >> Hi, >> >> On Tue, May 11, 2010 at 02:13:01PM +0100, Sean Whitton wrote: >>> On Tue, May 11, 2010 at 11:10:04AM +0200, Troels Henriksen wrote: >>> > The attached patch lets you bind keys to small lines of Javascript to >>> > run. >>> > >>> > T

Re: [dev] surf patch: bind keystrokes to snippets of Javascript

2010-05-11 Thread Sean Whitton
Hi, On Tue, May 11, 2010 at 11:10:04AM +0200, Troels Henriksen wrote: > The attached patch lets you bind keys to small lines of Javascript to > run. > > The intent is that the usual ~/.surf/script.js defines various methods, > which are then run by the bindings. This is much cleaner than having

Re: [dev] surf patch: bind keystrokes to snippets of Javascript

2010-05-11 Thread Troels Henriksen
Sean Whitton writes: > Hi, > > On Tue, May 11, 2010 at 02:13:01PM +0100, Sean Whitton wrote: >> On Tue, May 11, 2010 at 11:10:04AM +0200, Troels Henriksen wrote: >> > The attached patch lets you bind keys to small lines of Javascript to >> > run. >> > >> > The intent is that the usual ~/.surf/sc

Re: [dev] surf patch: bind keystrokes to snippets of Javascript

2010-05-11 Thread Sean Whitton
Hi, On Tue, May 11, 2010 at 02:13:01PM +0100, Sean Whitton wrote: > On Tue, May 11, 2010 at 11:10:04AM +0200, Troels Henriksen wrote: > > The attached patch lets you bind keys to small lines of Javascript to > > run. > > > > The intent is that the usual ~/.surf/script.js defines various methods,

[dev] surf patch: bind keystrokes to snippets of Javascript

2010-05-11 Thread Troels Henriksen
The attached patch lets you bind keys to small lines of Javascript to run. The intent is that the usual ~/.surf/script.js defines various methods, which are then run by the bindings. This is much cleaner than having script.js create its own event listeners for keybindings going outside surf's own