Added missed x-hint-command setting.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 16 May 2017 21:21:48 +0000 (23:21 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 16 May 2017 21:23:15 +0000 (23:23 +0200)
doc/vimb.1
src/setting.c

index 3b29ead..ae3e3e0 100644 (file)
@@ -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 <C-R>% <C-R>;"
+This fills the inputbox with the prefilled download command and replaces
+`<C-R>%' with the current URI and `<C-R>;' with the URI of the hinted element.
+.PD
+.RE
 .SH FILES
 .TP
 .IR $XDG_CONFIG_HOME/vimb[/PROFILE]
index 296fe53..09c4077 100644 (file)
@@ -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 <C-R>;", NULL, 0, NULL);
 
 #ifdef FEATURE_GUI_STYLE_VIMB2_COMPAT
     /* gui style settings vimb2 compatibility */