Hello Dmitrij,

Sorry for my direct approach, but I know you're involved into Surf2
webkit2 porting (even upstream), so I would like to give you a
preliminary feedback (during these days I finally had a bit of spare
time and applied all my patches to the new branch):

1) PLUMB is not working; I use a script to manage "mailto:"; protocol
(AFAICT, xdg-open open_generic function is buggy or not intended for
this purpose):

[....................snip....................]
#define PLUMB(u) {\
        .v = (char *[]){ "/bin/sh", "-c", \
             "protocol-handler \"$0\"", u, NULL \
        } \
}
[....................snip....................]


[....................snip....................]
#!/bin/sh

# File:         protocol-handler
# Purpose:      Handles some specific protocols different from "http://";,
#               "https://";, "file://", "about:"
# Author:       A. DE LAURENZIS

if [ $# -ne 1 ]; then
        echo "Usage: protocol-handler <URI>"
        exit 1
fi

PROT=$(echo "$1" | egrep -o "^[a-z0-9]+:/{0,2}")
URI=$(echo "$1" | sed "s|$PROT||")

case "$PROT" in
mailto*)
        xterm -e mutt "$URI"
        ;;
*)
        echo "Unknown protocol $PROT"
        exit 2
        ;;
esac
exit 0
[....................snip....................]

but when I click on an e-mail address, the browser reports the following
message:

URL cannot be shown


2) I use the script in [1] for link hinting (of course, it is in
~/.surf/script.js and it's the only one); but pressing the Alt key, that
should highlight the link numbers, nothing happens.

Needless to say, both things are pretty functional in Surf (with
webkit1).

Just my 2 cents.

All the best


[1]: http://surf.suckless.org/files/easy_links

-- 
Alessandro DE LAURENZIS
[mailto:sandro.delauren...@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis

Reply via email to