aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--docs/TODO2
-rw-r--r--examples/configs/sampleconfig2
-rw-r--r--examples/configs/sampleconfig-dev2
4 files changed, 5 insertions, 3 deletions
diff --git a/README b/README
index b8fd50e..4740b21 100644
--- a/README
+++ b/README
@@ -149,6 +149,8 @@ The following commands are recognized:
- search with no string will search for the next/previous occurrence of the string previously searched for
* `toggle_insert_mode <optional state>`
- if the optional state is 0, disable insert mode. If 1, enable insert mode.
+* `dump_config`
+ - dumps your current config (which may have been changed at runtime) to stdout, in a format you can use to pipe into uzbl again (or use as config file)
* `keycmd <string>`
* `keycmd_nl <string>`
- keycmd sets the interactive command buffer to `<string>`. If the given string is a valid binding, it will execute. `Keycmd_nl` is like `keycmd`, but it also emulates a press of return, causing bindings with a parameter to execute. For example, `keycmd_nl o google.com` would load the said url if you have a binding like `bind o _ = uri %s`.
diff --git a/docs/TODO b/docs/TODO
index dcee01b..561757c 100644
--- a/docs/TODO
+++ b/docs/TODO
@@ -48,7 +48,7 @@ More or less in order of importance/urgency
link following
webkit inspector usage
scroll commands can take %s, eg scroll 100% for pages
- chaining of actions, dump_config, print (and other actions that aren't documented yet)
+ chaining of actions, print (and other actions that aren't documented yet)
overriding variables (such as -u)
variable expansion (@var, @{var}, where do they get expanded? can users have their own vars?, should we merge this with the replacement we do for useragent/window title etc?)
how %s works for the js command
diff --git a/examples/configs/sampleconfig b/examples/configs/sampleconfig
index daaf5c5..5daa21c 100644
--- a/examples/configs/sampleconfig
+++ b/examples/configs/sampleconfig
@@ -107,7 +107,7 @@ bind S = js alert("hi");
# Parameters are separated by spaces and the script body must be one parameter, so enclose it in
# quotes and escape any inner quotes using backslashes
bind XS = sh 'echo "js alert (\'This is sent by the shell via a fifo\')" > "$4"'
-
+bind dump = sh "echo dump_config > $4"
# we ship some javascripts to do keyboard based link hinting/following. (webkit does not have C DOM bindings yet)
# this is similar to how it works in vimperator (and konqueror)
diff --git a/examples/configs/sampleconfig-dev b/examples/configs/sampleconfig-dev
index 94b60b1..03310b4 100644
--- a/examples/configs/sampleconfig-dev
+++ b/examples/configs/sampleconfig-dev
@@ -146,7 +146,7 @@ bind S = js alert("hi");
# 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 "js alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
-
+bind dump = sh "echo dump_config > $4"
# this script allows you to configure (per domain) values to fill in form fields (eg login information) and to fill in these values automatically
bind za = spawn ./examples/scripts/formfiller.sh
bind ze = spawn ./examples/scripts/formfiller.sh edit