1 commit 36029e1faf0761607e3192fb4968f3228d84af9f
2 Author: Mason Larobina <mason.larobina@gmail.com>
3 Date: Sat Jan 9 13:47:54 2010 +0800
5 Comment out anything in the config that used @jsh or the Uzbl object.
7 commit c6756f9373b837aa3ff499f1e6bd7477d0eec361
8 Author: Mason Larobina <mason.larobina@gmail.com>
9 Date: Mon Jan 11 20:05:32 2010 +0800
11 Fix yank bind now that the Uzbl object is gone.
13 diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
14 index 3edb36c..e53dd1a 100644
15 --- a/examples/config/uzbl/config
16 +++ b/examples/config/uzbl/config
17 @@ -35,7 +35,7 @@ set shell_cmd = sh -c
18 set scripts_dir = $XDG_DATA_HOME/uzbl:@prefix/share/uzbl/examples/data/uzbl:scripts
21 -set jsh = js var run=Uzbl.run; function get(k){return run("print \\\@"+k)}; function set(k, v) {run("set "+k+" = "+v)};
22 +#set jsh = js var run=Uzbl.run; function get(k){return run("print \\\@"+k)}; function set(k, v) {run("set "+k+" = "+v)};
24 # === Handlers ===============================================================
26 @@ -71,7 +71,7 @@ set new_window = sh 'uzbl-browser -u $8'
28 # Generate a FORM_ACTIVE event if an editable
29 # element on the loaded site has initial focus
30 -@on_event LOAD_FINISH js if(document.activeElement.type == 'text') {Uzbl.run("event FORM_ACTIVE");}
31 +#@on_event LOAD_FINISH js if(document.activeElement.type == 'text') {Uzbl.run("event FORM_ACTIVE");}
33 # Switch to insert mode if a (editable) html form is clicked
34 @on_event FORM_ACTIVE @set_mode insert
35 @@ -192,9 +192,9 @@ set ebind = @mode_bind global,-insert
37 # if clicked on a link open the link in a new uzbl window
38 # otherwise open the selection in the current window
39 -set load_from_xclip = sh 'echo "uri $(xclip -o)" > $4'
40 -set open_new_window = sh 'uzbl-browser -u \@SELECTED_URI'
41 -@bind <Button2> = @jsh if(get("SELECTED_URI")) { run("\@open_new_window"); } else { run("\\\@load_from_xclip"); }
42 +#set load_from_xclip = sh 'echo "uri $(xclip -o)" > $4'
43 +#set open_new_window = sh 'uzbl-browser -u \@SELECTED_URI'
44 +#@bind <Button2> = @jsh if(get("SELECTED_URI")) { run("\@open_new_window"); } else { run("\\\@load_from_xclip"); }
47 # === Keyboard bindings ======================================================
48 @@ -276,7 +276,7 @@ set toggle_cmd_ins = @toggle_modes command insert
49 @cbind gh = uri http://www.uzbl.org
51 # --- Yanking & pasting binds ---
52 -@cbind y<Yank (t)itle or (u)rl:>* = @jsh if('%s' == 'u') { run("sh 'echo -n $6 | xclip'"); } else if('%s' == 't') { run("sh 'echo -n $7 | xclip'"); }; run('event SET_KEYCMD');
53 +#@cbind y<Yank (t)itle or (u)rl:>* = @jsh if('%s' == 'u') { run("sh 'echo -n $6 | xclip'"); } else if('%s' == 't') { run("sh 'echo -n $7 | xclip'"); }; run('event SET_KEYCMD');
55 # Go the page from primary selection
56 @cbind p = sh 'echo "uri `xclip -selection primary -o`" > $4'
57 diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
58 index e53dd1a..2832505 100644
59 --- a/examples/config/uzbl/config
60 +++ b/examples/config/uzbl/config
61 @@ -276,7 +276,8 @@ set toggle_cmd_ins = @toggle_modes command insert
62 @cbind gh = uri http://www.uzbl.org
64 # --- Yanking & pasting binds ---
65 -#@cbind y<Yank (t)itle or (u)rl:>* = @jsh if('%s' == 'u') { run("sh 'echo -n $6 | xclip'"); } else if('%s' == 't') { run("sh 'echo -n $7 | xclip'"); }; run('event SET_KEYCMD');
66 +@cbind yu = sh 'echo -n $6 | xclip'
67 +@cbind yt = sh 'echo -n $7 | xclip'
69 # Go the page from primary selection
70 @cbind p = sh 'echo "uri `xclip -selection primary -o`" > $4'