Skip to content
Snippets Groups Projects
Commit 17734419 authored by Matthias BUSSONNIER's avatar Matthias BUSSONNIER Committed by Marijn Haverbeke
Browse files

expose full completion data to extraKeys in show hints.

parent 53df1102
No related branches found
No related tags found
Loading
......@@ -225,7 +225,8 @@
menuSize: function() { return widget.screenAmount(); },
length: completions.length,
close: function() { completion.close(); },
pick: function() { widget.pick(); }
pick: function() { widget.pick(); },
data: data
}));
if (options.closeOnUnfocus !== false) {
......
......@@ -2110,7 +2110,11 @@
has <code>moveFocus(n)</code>, <code>setFocus(n)</code>, <code>pick()</code>,
and <code>close()</code> methods (see the source for details),
that can be used to change the focused element, pick the
current element or close the menu.</dd>
current element or close the menu. Additionnaly <code>menuSize()</code>
can give you access to the size of the current dropdown menu,
<code>length</code> give you the number of availlable completions, and
<code>data</code> give you full access to the completion returned by the
hinting function.</dd>
<dt><code><strong>extraKeys</strong>: keymap</code></dt>
<dd>Like <code>customKeys</code> above, but the bindings will
be added to the set of default bindings, instead of replacing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment