Skip to content

v0.7.0

Compare
Choose a tag to compare
@erikgeiser erikgeiser released this 21 Jun 19:41
· 19 commits to main since this release

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: The textinput 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: The Validate 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 custom Validate 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 the WordWrap mode
  • selection: The page size is now automatically adjusted to fit the terminal size if necessary