Breaking change
v4.0.0 marks a breaking change to the tab completion function.
Earlier versions expected multiple parameters to be returned however from
v4.0.0 onwards, a pointer to a structure is instead expected:
type TabCompleterReturnT struct {
Prefix string
Suggestions []string
Descriptions map[string]string
DisplayType TabDisplayType
HintCache HintCacheFuncT
Preview PreviewFuncT
}
This allows for more configurability and without the cost of copying multiple
different pieces of data nor future breaking changes whenever additional new
features are added.
Improvements
-
support for wide and zero width unicode characters
(inherited from Murex) -
preview modes
(inherited from Murex) -
API improvements
-
rewritten event system
(discussion) -
vastly improved buffered rendering -- this leads to few rendering glitches
and particularly on slower machines and/or terminals -
added missing vim and emacs keybindings
(full list of keybindings) -
additional tests
-
fixed glitches on Windows terminals
(discussion) -
readline command mode
(discussion)