]> git.pld-linux.org Git - packages/uzbl.git/blame - uzbl-config-nojs.patch
- rel 2
[packages/uzbl.git] / uzbl-config-nojs.patch
CommitLineData
1b5451c0 1commit 36029e1faf0761607e3192fb4968f3228d84af9f
2Author: Mason Larobina <mason.larobina@gmail.com>
3Date: Sat Jan 9 13:47:54 2010 +0800
4
5 Comment out anything in the config that used @jsh or the Uzbl object.
6
7commit c6756f9373b837aa3ff499f1e6bd7477d0eec361
8Author: Mason Larobina <mason.larobina@gmail.com>
9Date: Mon Jan 11 20:05:32 2010 +0800
10
11 Fix yank bind now that the Uzbl object is gone.
12
13diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
14index 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
19
20 # Javascipt helpers.
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)};
23
24 # === Handlers ===============================================================
25
26@@ -71,7 +71,7 @@ set new_window = sh 'uzbl-browser -u $8'
27
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");}
32
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
36 # Middle click
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"); }
45
46
47 # === Keyboard bindings ======================================================
48@@ -276,7 +276,7 @@ set toggle_cmd_ins = @toggle_modes command insert
49 @cbind gh = uri http://www.uzbl.org
50
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');
54
55 # Go the page from primary selection
56 @cbind p = sh 'echo "uri `xclip -selection primary -o`" > $4'
57diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
58index 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
63
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'
68
69 # Go the page from primary selection
70 @cbind p = sh 'echo "uri `xclip -selection primary -o`" > $4'
This page took 0.057972 seconds and 4 git commands to generate.