Releases: mikaelmello/inquire
Releases · mikaelmello/inquire
v0.0.9
General
- Improve docs on the differences between
raw_prompt
andprompt
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
Features
- Password display toggle: By enabling this option in
Password
prompts viawith_display_toggle_enabled()
, the application user can choose to display the current text input for the password by pressingCtrl+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 theMasked
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
andText
(suggestions list) prompts, where they go a page up or down in the current list. Also, forSelect
andMultiSelect
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
andText
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
andMultiSelect
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
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
- Add [previously non-existing] documentation.
- Add CustomType prompt
- Add revamped auto-completion support for Text prompts
v0.0.5
- 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
- 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
- Reduce package footprint
- Add custom parser option to Confirm prompt
- Add DateSelect prompt
v0.0.2
(cargo-release) inquire version 0.0.2