From: gopher-project-bounces+rachael=telefisk.org@lists.alioth.debian.org Date: Thu Dec 6 14:34:25 2012 Subject: [gopher] luakit web-browser and gopher I found that recently I've been using the luakit web-browser a lot, it's one of those "lightweight" keyboard driven types but unusually not totally mouse hostile. Despite having never messed with lua before I started to think it might be nice if it could do something with gopher links - a sort of overbite for luakit... Sometime later and I've got this far -------------------- -- Gopher handler -- -------------------- webview.init_funcs.gopher_hook = function (view, w) view:add_signal("navigation-request", function (v, uri) local uri = w.view.hovered_uri if string.match(string.lower(uri), "gopher.floodgap.com") thn else if string.match(string.lower(uri), "gopher:") then local gopher = "http://gopher.floodgap.com/gopher/gw?a=" .. uri uri = (string.format(gopher)) w:navigate(string.format(gopher)) return false end end end) end With the above code in my userconf.lua direct gopher links will open using the floodgap proxy providing I open the link in the same tab (it all goes a bit odd if one tries to open a gopher link in a new tab or window). This works well enough for me - but I'm sure a luahead could do much better. NB: Cameron Kaiser, sorry about all the malformed requests floodgap was getting the other week when I was working on this. Peter (\___/) (='.'=) This is Bunny. Copy and paste Bunny into your (")_(") signature to help him gain world domination. Alte Amplius et Sine Ratione gopher://sdf.lonestar.org/1/users/happy/ _______________________________________________ Gopher-Project mailing list Gopher-Project@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project (DIR) Followup: Re: [gopher] luakit web-browser and gopher