aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-10-25 20:29:26 +0100
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-10-25 20:29:26 +0100
commite3cb0cc1f85a9de67b61c7c052bec9d8357fac0c (patch)
treeece294f8580e77bf92b01d008d81114c44ce3689
parentc612ab35e1081bd37085f6676e8431669b1eed8a (diff)
re-enable bookmarks script, make builtin-bookmarking compatible + allow reloading config without reloading home page
-rw-r--r--examples/config/uzbl/config10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
index 7d05e9e..52de5e5 100644
--- a/examples/config/uzbl/config
+++ b/examples/config/uzbl/config
@@ -133,7 +133,8 @@ set socket_dir = /tmp
@bind gg _ = uri http://www.google.com/search?q=%s
# Enclose the executable in quotes if it has spaces. Any additional parameters you use will
# appear AFTER the default parameters
-#@bind B = spawn @scripts_dir/insert_bookmark.sh
+# use a script to insert bookmarks. or use the EM/keycmd technique a bit further down
+@bind B = spawn @scripts_dir/insert_bookmark.sh
@bind U = spawn @scripts_dir/load_url_from_history.sh
@bind u = spawn @scripts_dir/load_url_from_bookmarks.sh
# with the sample yank script, you can yank one of the arguments into clipboard/selection
@@ -159,7 +160,7 @@ set socket_dir = /tmp
@bind XS = sh 'echo "js alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
@bind !dump = sh "echo dump_config > $4"
-@bind !reload = sh 'cat $1 > $4'
+@bind !reload = sh "sed '/^# === Post-load misc commands/,$d' $1 > $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
set formfiller = spawn @scripts_dir/formfiller
@@ -187,9 +188,8 @@ set formfiller = spawn @scripts_dir/formfiller
# Examples using multi-stage-bindings with text prompts.
@bind o<uri:>_ = uri %s
-# Prints tab separated "uri title keyword tags" to the bookmarks file.
-# TODO: Improve bookmarks script to handle this format & include date in bookmark format.
-@bind <Ctrl>b<name:>_<tags:>_ = sh 'echo -e "$6 $7 %s %s" >> $XDG_DATA_HOME/uzbl/bookmarks'
+# multi-stage binding way to write bookmarks to file from inside uzbl.
+@bind <Ctrl>b<tags:>_ = sh 'echo -e "$6 %s" >> $XDG_DATA_HOME/uzbl/bookmarks'
# Multi-stage bindings with blank prompts (similar behaviour to emacs M-c M-s bindings?)
@bind <Ctrl>a<:><Ctrl>q = exit