Skip to content

Releases: mikaelmello/inquire

v0.0.9

29 Aug 02:06
v0.0.9
03d6a4e
Compare
Choose a tag to compare

General

  • Improve docs on the differences between raw_prompt and prompt on Select and MultiSelect prompts.
  • Bump version of crossterm dependency

Fixes

  • Regression introduced on v0.0.8 where select prompts were panicking when user pressed enter while no options were displayed (due to filter input). Tracked by #29 and tests were added for this to not happen again.

v0.0.8

25 Aug 22:55
v0.0.8
ffc6e07
Compare
Choose a tag to compare

Features

  • Password display toggle: By enabling this option in Password prompts via with_display_toggle_enabled(), the application user can choose to display the current text input for the password by pressing Ctrl+R, and hide it back by pressing the hotkey again. #18
  • Render mask of password input: Password prompts now support another render mode of the text input. Before, the only behavior was to not render anything about the current password input. Now, if the developer so chooses, they can activate the Masked mode where the current text input will be masked with special characters such as '*'. #19
  • PageUp, PageDown, Home and End hotkeys: PageUp and PageDown are now supported in Select, MultiSelect and Text (suggestions list) prompts, where they go a page up or down in the current list. Also, for Select and MultiSelect prompts, the Home and End keys were mapped to go to the start or end of the list, respectively. #17
  • Indication that list is scrollable: Now option lists, present in Select, MultiSelect and Text prompts, indicate whether there are more options other than the ones currently displayed. Little arrows are displayed at the top or bottom of the list indicating to which positions the user can scroll. #8
  • Generic option types for Select and MultiSelect prompts: Now, Select and MultiSelect prompts accept any type of options as input, allowing developers to pass a vector of owned objects and get back the full object picked by the user. #9

Fixes

  • Handling of new-line characters in user-provided strings: When putting \n on strings such as prompt messages, the library previously did not render it very well and did not account for it when cleaning the current prompt. This is fixed and you are free to create multi-line prompts! #15
  • Lines larger than terminal width broke rendering: When lines that were larger than the terminal width were rendered, it caused the internal line counter (used to clean the prompt) to be off, leading to buggy behavior. This was fixed by retrieving the terminal size at the start of the prompt. #21

v0.0.7

20 Aug 22:57
v0.0.7
dc2511a
Compare
Choose a tag to compare

Features

  • Add possibility to set custom rendering config, allowing users to set:
    • Custom colors
    • Custom prefixes for several prompts
    • Custom checkboxes
  • Add "placeholder" feature for prompts with text input

v0.0.6

26 Jul 22:18
v0.0.6
37f2132
Compare
Choose a tag to compare
  • Add [previously non-existing] documentation.
  • Add CustomType prompt
  • Add revamped auto-completion support for Text prompts

v0.0.5

20 Jul 01:43
v0.0.5
5df5826
Compare
Choose a tag to compare
  • All function arguments now accept closures by having their type changed to &dyn Fn.
  • Improved input UX
    • Cursor added for better editing experience
    • Features/shortcuts added: Ctrl+Left, Ctrl+Right, Home, End, Delete, Ctrl+Delete

v0.0.4

14 Jul 12:49
v0.0.4
04a45f0
Compare
Choose a tag to compare
  • Add a custom error enum InquireError, improving error handling for library users.
  • Improve support for validator functions, allowing the use of closures.
  • Change the terminal back-end from termion to crossterm, adding Windows support for this library.

v0.0.3

07 Jul 12:40
Compare
Choose a tag to compare
  • Reduce package footprint
  • Add custom parser option to Confirm prompt
  • Add DateSelect prompt

v0.0.2

02 Jul 20:29
Compare
Choose a tag to compare
(cargo-release) inquire version 0.0.2