From eb23cea534276f74926571393267827b2a74e7d0 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 16 May 2017 23:21:48 +0200 Subject: [PATCH] Added missed x-hint-command setting. --- doc/vimb.1 | 14 ++++++++++++++ src/setting.c | 1 + 2 files changed, 15 insertions(+) diff --git a/doc/vimb.1 b/doc/vimb.1 index 3b29ead..ae3e3e0 100644 --- a/doc/vimb.1 +++ b/doc/vimb.1 @@ -856,6 +856,20 @@ To have upper case hint labels, it's possible to add following css to the `style.css' file in vimb's configuration directory. .IP "._hintLabel {text-transform: uppercase !important;}" .RE +.TP +.B x-hint-command (string) +Command used if hint mode ;x is fired. +The command can be any vimb command string. +Note that the command is run through the mapping mechanism of vimb so +it might change the behaviour by adding or changing mappings. +.RS +.P +.PD 0 +.IP ":set x-hint-command=:sh! curl -e % ;" +This fills the inputbox with the prefilled download command and replaces +`%' with the current URI and `;' with the URI of the hinted element. +.PD +.RE .SH FILES .TP .IR $XDG_CONFIG_HOME/vimb[/PROFILE] diff --git a/src/setting.c b/src/setting.c index 296fe53..09c4077 100644 --- a/src/setting.c +++ b/src/setting.c @@ -150,6 +150,7 @@ void setting_init(Client *c) i = 10; /* TODO should be global and not overwritten by a new client */ setting_add(c, "closed-max-items", TYPE_INTEGER, &i, internal, 0, &vb.config.closed_max); + setting_add(c, "x-hint-command", TYPE_CHAR, &":o ;", NULL, 0, NULL); #ifdef FEATURE_GUI_STYLE_VIMB2_COMPAT /* gui style settings vimb2 compatibility */ -- 2.20.1