Add Shift-Mouse1 bind to open link under cursor with plumb - dotfiles - leot's dotfiles
 (HTM) hg clone https://bitbucket.org/iamleot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 90663b7bbb3de21e0ad0d3529fc3dada520c2f91
 (DIR) parent a2d1a38acbab1df31e236b05887fc0c955fbf603
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sun, 30 Sep 2018 04:00:14 
       
       Add Shift-Mouse1 bind to open link under cursor with plumb
       
       Diffstat:
        config/luakit/userconf.lua |  8 ++++++++
        1 files changed, 8 insertions(+), 0 deletions(-)
       ---
       diff -r a2d1a38acbab -r 90663b7bbb3d config/luakit/userconf.lua
       --- a/config/luakit/userconf.lua        Sun Sep 30 03:40:54 2018 +0200
       +++ b/config/luakit/userconf.lua        Sun Sep 30 04:00:14 2018 +0200
       @@ -18,6 +18,14 @@
                  luakit.spawn(string.format("mpv %q", uri))
               end
            end },
       +    { "<Shift-Mouse1>", "Open link under cursor with plumb", function (w, m)
       +       if not m.context.editable then
       +           local uri = w.view.hovered_uri or w.view.uri
       +           if uri then
       +               luakit.spawn(string.format("plumb %q", uri))
       +           end
       +       end
       +    end },
        })
        
        local soup = require "soup"