new statusbar consisting of 2 lines
set status_format = <span>line1 line2</span>
In command mode ”[Ins]” is black, in insert mode it's red.
set status_format = <span font_family="monospace"><span background="khaki" foreground="\@[\@MODE]\@">[Ins]</span> [<span weight="bold" foreground="red">\@[\@keycmd]\@</span>] <span foreground="#606060"> \@[\@LOAD_PROGRESSBAR]\@ </span><span foreground="#99FF66">\@[\@uri]\@</span> <span foreground="khaki">\@[\@NAME]\@</span> <span foreground="orange">\@status_message</span><span foreground="#606060"> \@[\@SELECTED_URI]\@</span></span> set insert_indicator = red set command_indicator = black
A lot of browsers use ctrl+w to close the tab, and if you're used to it, it's uzbl for you!
You can also try different combinations, though some might not work :p
Implement the tabopen command from vimperator, although it starts a new uzbl
bind t _ = sh 'uzbl --uri %s'
This could be improved with a command line tool to url and bash escape a url in a variable. Anyone know a good way?
bind vr = sh 'echo uri "http://www.reddit.com/submit?url=$6" > $4'
The binding is vr because r and s were already taken.
I've written a better script reddit.
using the tinyurl api/wget/xclip
@bind xurl = sh 'wget -O - "http://tinyurl.com/api-create.php?url=\@uri" | xclip'
(Thanks to rob| in #uzbl.)
@on_event LOAD_FINISH sh 'if [ "\@<document.activeElement.type>\@" = "text" ]; then echo "event FORM_ACTIVE" > $4; fi'
This helps alleviate the confusion that happens when, for example, google.com loads with the cursor flashing in the text entry box, but uzbl is still in command mode. Now, it goes straight to insert mode.
@cbind v = sh 'echo "js document.documentElement.outerHTML" | socat - unix-connect:$5 | html2text -nobs -width 160 | gvim - -c "set nofen"'
After loading you can not login with enter because you are not in insert mode. This binding switches to insert mode autmatically after loading the login informations.
@cbind zl = chain "@script_dir/formfiller.sh load" "@set_mode insert"