diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-06-07 13:22:52 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-06-07 13:22:52 +0200 |
commit | ec14eba5433c5813af1a7bc99f450a413825a6df (patch) | |
tree | f8c95ab3c88c683a5e5e661ac997bdbb3c5f18c3 | |
parent | 178444bd79552c7e07cf5253997572c901d7138d (diff) |
document dump_config
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | docs/TODO | 2 | ||||
-rw-r--r-- | examples/configs/sampleconfig | 2 | ||||
-rw-r--r-- | examples/configs/sampleconfig-dev | 2 |
4 files changed, 5 insertions, 3 deletions
@@ -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`. @@ -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 |