From cd8ae0f8c77f7bd6940b8f65a338a3fa8736661a Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Tue, 26 May 2009 22:44:01 +0200 Subject: integrate sscj stuff --- examples/configs/sampleconfig-dev | 5 +++++ examples/scripts/formfiller.pl | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/configs/sampleconfig-dev b/examples/configs/sampleconfig-dev index 8652cc1..3deeac1 100644 --- a/examples/configs/sampleconfig-dev +++ b/examples/configs/sampleconfig-dev @@ -151,6 +151,11 @@ bind ze = spawn ./examples/scripts/formfiller.sh edit bind zn = spawn ./examples/scripts/formfiller.sh new bind zl = spawn ./examples/scripts/formfiller.sh load +# other - more advanced - implementation using perl: (could not get this to run - Dieter ) +bind LL = spawn ./examples/scripts/formfiller.pl load +bind LN = spawn ./examples/scripts/formfiller.pl new +bind LE = spawn ./examples/scripts/formfiller.pl edit + # we ship some javascripts to do keyboard based link hinting/following. (webkit does not have C DOM bindings yet) # this is similar to how it works in vimperator (and konqueror) # TODO: did we resolve: "no click() event for hyperlinks so no referrer set" ? diff --git a/examples/scripts/formfiller.pl b/examples/scripts/formfiller.pl index 4c351b5..a6e07a0 100755 --- a/examples/scripts/formfiller.pl +++ b/examples/scripts/formfiller.pl @@ -10,14 +10,14 @@ # new: fetch new file # usage example: -# bind LL = spawn /usr/share/uzbl/examples/scripts/formfiller2.pl load -# bind LN = spawn /usr/share/uzbl/examples/scripts/formfiller2.pl new -# bind LE = spawn /usr/share/uzbl/examples/scripts/formfiller2.pl edit +# bind LL = spawn /usr/share/uzbl/examples/scripts/formfiller.pl load +# bind LN = spawn /usr/share/uzbl/examples/scripts/formfiller.pl new +# bind LE = spawn /usr/share/uzbl/examples/scripts/formfiller.pl edit use strict; use Switch; -my $keydir = $ENV{XDG_CONFIG_HOME} . "/uzbl/keys"; +my $keydir = $ENV{XDG_CONFIG_HOME} . "/uzbl/forms"; my ($config,$pid,$xid,$fifo,$socket,$url,$title,$cmd) = @ARGV; if($fifo eq "") { die "No fifo"; }; @@ -27,8 +27,8 @@ sub domain { return $url; }; -#my $editor = "xterm -e vim"; -my $editor = "gvim"; +my $editor = "xterm -e vim"; +#my $editor = "gvim"; # ideally, there would be some way to ask uzbl for the html content instead of having to redownload it with # Also, you may need to fake the user-agent on some sites (like facebook) -- cgit v1.2.3