Update sampleconf* for single quotes
authorDuClare <akarinotengoku@gmail.com>
Tue, 19 May 2009 06:40:07 +0000 (09:40 +0300)
committerDuClare <akarinotengoku@gmail.com>
Tue, 19 May 2009 06:40:07 +0000 (09:40 +0300)
examples/configs/sampleconfig
examples/configs/sampleconfig-dev

index 444a20a..69156e2 100644 (file)
@@ -97,8 +97,8 @@ bind    S         = script alert("hi");
 # it sends a command to the fifo, whose path is told via a positional param
 # if fifo_dir is not set, it'll echo to a file named (null) somewhere >:) remember to delete it
 # Parameters are separated by spaces and the script body must be one parameter, so enclose it in
-# DOUBLE quotes and escape any inner quotes using backslashes
-bind    XS        = sh "echo \"act script alert (\\\"This is sent by the shell via a fifo\\\")\" > \"$4\""
+# quotes and escape any inner quotes using backslashes
+bind    XS        = sh 'echo "act script alert (\'This is sent by the shell via a fifo\')" > "$4"'
 # Keyboard based link following: work in progress! No C DOM bindings yet, no click() event for hyperlinks so no referrer set..Quite basic but does the job for now...
 #hit F to toggle the Hints (now in form of link numbering)
 bind    F= script for (var i=0; i < document.links.length; i++) {var uzblid = 'uzbl_link_hint_';var li = document.links[i];var pre = document.getElementById(uzblid+i);if (pre) {li.removeChild(pre);} else {var hint = document.createElement('div');hint.setAttribute('id',uzblid+i);hint.innerHTML = i;hint.style.display='inline';hint.style.lineHeight='90%';hint.style.backgroundColor='red';hint.style.color='white';hint.style.fontSize='small-xx';hint.style.fontWeight='light';hint.style.margin='0px';hint.style.padding='2px';hint.style.position='absolute';hint.style.textDecoration='none';hint.style.left=li.style.left;hint.style.top=li.style.top;li.insertAdjacentElement('afterBegin',hint);}}
index fa4be91..ea3ea6f 100644 (file)
@@ -80,7 +80,7 @@ bind    :wiki _   = uri http://wiki.archlinux.org/index.php/Special:Search?searc
 bind    gg _      = uri http://www.google.com/search?q=%s
 bind    i         = insert_mode
 #TODO: no 'toggle' command?
-# Enclose the executable in double quotes if it has spaces.  Any additional parameters you use will
+# Enclose the executable in quotes if it has spaces.  Any additional parameters you use will
 # appear AFTER the default parameters
 bind    B         = spawn ./examples/scripts/insert_bookmark.sh
 bind    U         = spawn ./examples/scripts/load_url_from_history.sh
@@ -100,10 +100,10 @@ bind    S         = script alert("hi");
 # it sends a command to the fifo, whose path is told via a positional param
 # if fifo_dir is not set, it'll echo to a file named (null) somewhere >:) remember to delete it
 # The body of the shell command should be one parameter, so if it has spaces like here,
-# you must enclose it in double quotes.  Remember to escape (and double-escape) quotes and backslashes
+# you must enclose it in quotes.  Remember to escape (and double-escape) quotes and backslashes
 # in the body.  Any additional parameters you use will appear AFTER the default parameters (cfg file
 # path, fifo & socket dirs, etc.)
-bind    XS        = sh "echo \"act script alert (\\\"This is sent by the shell via a fifo\\\")\" > \"$4\""
+bind    XS        = sh 'echo "act script alert (\'This is sent by the shell via a fifo\')" > "$4"'
 # Keyboard based link following: work in progress! No C DOM bindings yet, no click() event for hyperlinks so no referrer set..Quite basic but does the job for now...
 #hit F to toggle the Hints (now in form of link numbering)
 bind    F= script for (var i=0; i < document.links.length; i++) {var uzblid = 'uzbl_link_hint_';var li = document.links[i];var pre = document.getElementById(uzblid+i);if (pre) {li.removeChild(pre);} else {var hint = document.createElement('div');hint.setAttribute('id',uzblid+i);hint.innerHTML = i;hint.style.display='inline';hint.style.lineHeight='90%';hint.style.backgroundColor='red';hint.style.color='white';hint.style.fontSize='small-xx';hint.style.fontWeight='light';hint.style.margin='0px';hint.style.padding='2px';hint.style.position='absolute';hint.style.textDecoration='none';hint.style.left=li.style.left;hint.style.top=li.style.top;li.insertAdjacentElement('afterBegin',hint);}}