> when you have typed enough characters to that only one item is
> matched, the item is highlighted (at the moment once this happens the
> list will automatically return the value)
> instead of returning automatically, the user can then either press
> return to confirm the selection, or the user can press space to
> highlight an additional item from the list etc.
tlib#input#List() supports different modes:
s ... Return one selected element
si ... Return the index of the selected element
m ... Return a list of selcted elements
mi ... Return a list of indexes (starting with 1 though)
E.g. with the following function call:
echo tlib#input#List('m', 'Select one or more item(s)', ["Foo x",
"Foo y", "Bar x", "Bar y"])
you can:
- Start typing a few characters (e.g. "Foo")
- Limit the items displayed (in this example with first and the second
one)
- Press # to select that item
- Move around, change the filter expression, select another item
- Press ENTER to return the list of selected items (or indices)
See also :help tlib#input#List
HTH
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment