aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-26 22:44:01 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-26 22:44:01 +0200
commitcd8ae0f8c77f7bd6940b8f65a338a3fa8736661a (patch)
tree27e996ade0b6a482dc0f31ded69675a8dea43b53 /examples
parentebb4e2a758b7c52d02ad0cc6401f6b14c21fa732 (diff)
integrate sscj stuff
Diffstat (limited to 'examples')
-rw-r--r--examples/configs/sampleconfig-dev5
-rwxr-xr-xexamples/scripts/formfiller.pl12
2 files changed, 11 insertions, 6 deletions
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)