FS#60 - mouse bindings (was: Get urls from middle-click)
Attached to Project:
Uzbl
Opened by 3288778 (g8723g82) - 2009-07-02 11:35:53 AM
Last edited by Dieter Plaetinck (Dieter_be) - 2009-12-19 10:34:48 AM
Opened by 3288778 (g8723g82) - 2009-07-02 11:35:53 AM
Last edited by Dieter Plaetinck (Dieter_be) - 2009-12-19 10:34:48 AM
|
DetailsIn Opera you can press middle click anywere in the opera window and it will go to the url in the clipboard.
dieters edit: if we have mouse bindings we can do lots of stuff like this |
This task depends upon
See http://lists.uzbl.org/pipermail/uzbl-dev-uzbl.org/2009-July/000223.html
i'll update your ticket
# Middle click
# if clicked on a link open the link in a new uzbl window
# otherwise open the selection in the current window
set load_from_xclip = sh 'echo "uri $(xclip -o)" > $4'
set open_new_window = sh 'uzbl-browser -u \@SELECTED_URI'
@bind <Button2> = @jsh if(get("SELECTED_URI")) { run("\@open_new_window"); } else { run("\\\@load_from_xclip"); }