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] bug in history

2010-05-11 Thread pancake
Thanks! On 05/11/10 14:56, Enno Boland (Gottox) wrote: Recheck tip. 2010/5/10, pancake: I have noticed another bug in surf. Way to reproduce: - go to a web page (1) - click to download a file (2) - click to go to another page (3) - go back in history (4) Expected result:

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,

Re: [dev] [surf] bug in history

2010-05-11 Thread Enno Boland (Gottox)
Recheck tip. 2010/5/10, pancake : > I have noticed another bug in surf. > > Way to reproduce: > > - go to a web page (1) > - click to download a file (2) > - click to go to another page (3) > - go back in history (4) > > Expected result: > - appear in web page (1) > > Result: > - yo

Re: [dev] dmenu -m "new%patch" -d "%"

2010-05-11 Thread Troels Henriksen
Connor Lane Smith writes: > Hey, > > On 11/05/2010, Martin Ellis wrote: >> We had a strange situation where putting the menu in stdin was difficult. >> >> For our situation supplying the menu on the command line would be easier. >> >> Attached is a patch that provides this. > > I wrote one simil

Re: [dev] dmenu -m "new%patch" -d "%"

2010-05-11 Thread Connor Lane Smith
Hey, On 11/05/2010, Martin Ellis wrote: > We had a strange situation where putting the menu in stdin was difficult. > > For our situation supplying the menu on the command line would be easier. > > Attached is a patch that provides this. I wrote one similar to this, except each argument after th

Re: [dev] dmenu -m "new%patch" -d "%"

2010-05-11 Thread Martin Ellis
Hey, I was not working on the problem directly; however as far as I know it was a combination of some nasty C and upstream restrictions on how the code should be written. We did get it working using stdin, however being able to supply the options in the format I suggest would have made things muc

Re: [dev] dmenu -m "new%patch" -d "%"

2010-05-11 Thread Dieter Plaetinck
On Tue, 11 May 2010 11:58:12 +0100 Martin Ellis wrote: > Hi, > > We had a strange situation where putting the menu in stdin was > difficult. > > For our situation supplying the menu on the command line would be > easier. > > Attached is a patch that provides this. > > The new syntax is > > d

Re: [dev] dmenu -m "new%patch" -d "%"

2010-05-11 Thread Troels Henriksen
Martin Ellis writes: > Hi, > > We had a strange situation where putting the menu in stdin was difficult. What situation is this? -- \ Troels /\ Henriksen

[dev] dmenu -m "new%patch" -d "%"

2010-05-11 Thread Martin Ellis
Hi, We had a strange situation where putting the menu in stdin was difficult. For our situation supplying the menu on the command line would be easier. Attached is a patch that provides this. The new syntax is dmenu -m "hello\nworld" or use the -d flag to specify the seperator dmenu -m "hell

[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