aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Tassilo Horn <tassilo@member.fsf.org>2009-07-12 19:19:56 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-07-12 19:19:56 +0200
commit33e1b2bebad165ef41457847bdfff2a3427c3bb3 (patch)
tree8b2a8ee752cfda0408256288f729a795592425eb
parent0e985d44b7a2a86620c878915e480ec9ddb491bf (diff)
parentbbe8e80c26a08c1c3f7531b7f8673e6941bc2c84 (diff)
use $VISUAL in formfiller.sh
-rw-r--r--AUTHORS1
-rwxr-xr-xexamples/data/uzbl/scripts/formfiller.sh7
2 files changed, 6 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index bc3b163..e9b97a9 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -35,6 +35,7 @@ Contributors:
Chris van Dijk (quigybo) - work on uzbl_tabbed.py
Moritz Lenz - small doc fix
Sergey Shepelev (temoto) - doc patch
+ Tassilo Horn (tsdh) - $VISUAL patch
Originaly based on http://trac.webkit.org/browser/trunk/WebKitTools/GtkLauncher/main.c
Which is copyrighted:
diff --git a/examples/data/uzbl/scripts/formfiller.sh b/examples/data/uzbl/scripts/formfiller.sh
index bbb9d1a..10afaba 100755
--- a/examples/data/uzbl/scripts/formfiller.sh
+++ b/examples/data/uzbl/scripts/formfiller.sh
@@ -16,8 +16,11 @@ keydir=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/forms
[ -d "`dirname $keydir`" ] || exit 1
[ -d "$keydir" ] || mkdir "$keydir"
-#editor=gvim
-editor='urxvt -e vim'
+editor=${VISUAL}
+if [[ -z ${editor} ]]; then
+ #editor='gvim'
+ editor='urxvt -e vim'
+fi
config=$1; shift
pid=$1; shift