From 46da0c91288a9c9d20af3a92c58b1dc6a00de4f4 Mon Sep 17 00:00:00 2001 From: Tom Adams Date: Sun, 23 Aug 2009 20:16:25 +0100 Subject: Remove redundant history_handler. --- examples/config/uzbl/config | 3 +-- examples/data/uzbl/scripts/history.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config index ab2cf7f..86f4268 100644 --- a/examples/config/uzbl/config +++ b/examples/config/uzbl/config @@ -4,14 +4,13 @@ # keyboard behavior in this sample config is sort of vimstyle # Handlers -set history_handler = spawn $XDG_DATA_HOME/uzbl/scripts/history.sh set download_handler = spawn $XDG_DATA_HOME/uzbl/scripts/download.sh set cookie_handler = spawn $XDG_DATA_HOME/uzbl/scripts/cookies.py #set new_window = sh 'echo uri "$8" > $4' # open in same window set new_window = sh 'uzbl -u $8' # equivalent to the default behaviour set load_start_handler = set status_message = wait set load_commit_handler = set status_message = recv -set load_finish_handler = set status_message = done +set load_finish_handler = chain 'set status_message = done' 'spawn $XDG_DATA_HOME/uzbl/scripts/history.sh' diff --git a/examples/data/uzbl/scripts/history.sh b/examples/data/uzbl/scripts/history.sh index d726f9c..7c83aa6 100755 --- a/examples/data/uzbl/scripts/history.sh +++ b/examples/data/uzbl/scripts/history.sh @@ -1,6 +1,5 @@ #!/bin/sh -#TODO: strip 'http://' part file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/history [ -d `dirname $file` ] || exit 1 -echo "$8 $6 $7" >> $file +echo `date +'%Y-%m-%d %H:%M:%S'`" $6 $7" >> $file -- cgit v1.2.3