v0.7.0
This version introduces some new features and improvements but also a few minor breaking changes. As stated in the README, this is to be expected until the release of version v1.0.0
. Stay tuned for the next version, which will likely make use of generics for the selection
prompt. Keep in mind that the library will require Go 1.18 from then on.
Changelog:
textinput
: Thetextinput
prompt now supports auto-competion. The auto-competion candidates can optionally be displayed in a custom template, see the custom textinput example for more information.textinput
: TheValidate
function now returns an error that can be displayed to the enduser to provide further information about the validation failure, see the custom textinput example for more information. This is a breaking change for users that already use a customValidate
function. Thank you @fiws for this feature.- The default wrap mode is now the new
Truncate
mode because of weird ANSI color glitches that can occur with theWordWrap
mode selection
: The page size is now automatically adjusted to fit the terminal size if necessary