- Added
dialoguer::Resultanddialoguer::Error - Added a
BasicHistoryimplementation forHistory - Added vim mode for
FuzzySelect - All prompts implement
Clone - Add handling of
Deletekey forFuzzySelect
- Resolve some issues on Windows where pressing shift keys sometimes aborted dialogs
- Resolve
MultiSelectchecked and unchecked variants looking the same on Windows Inputvalues that are invalid are now also stored inHistory- Resolve some issues with cursor positioning in
Inputwhen usingutf-8characters - Correct page is shown when default selected option is not on the first page for
Select - Fix panic in
FuzzySelectwhen using non-ASCII characters
- Updated MSRV to
1.63.0due to multiple dependencies on different platforms:rustix,tempfile,linux-raw-sys - Removed deprecated
Confirm::with_text - Removed deprecated
ColorfulTheme::inline_selections - Prompt builder functions now take
mut selfinstead of&mut self - Prompt builder functions now return
Selfinstead of&mut Self - Prompt interaction functions now take
selfinstead of&self - Prompt interaction functions and other operations now return
dialoguer::Resultinstead ofstd::io::Result - Rename
ValidatortoInputValidator - The trait method
Theme::format_fuzzy_select_prompt()now takes a byte position instead of a cursor position in order to support UTF-8.
- Added validator for password input
- Fix various issues with fuzzy select
- Enable customization of number of rows for fuzzy select
- Added post completion text for input
- Various cursor movement improvements
- Correctly ignore unknown keys.
- Reset prompt height in
TermThemeRenderer::clear.
- Fix fuzzy select active item colors.
- Fix fuzzy search clear on cancel.
- Clear everything on cancel via escape key.
- Allow matches highlighting for
FuzzySelect
- Loosen some trait bounds
- Improve keyboard interactions (#141, #162)
- Added
max_lengthtoMultiSelect,SelectandSort - Allow completion support for
Input::interact_text*behindcompletionfeature
- All prompts
*::newwill now don't report selected values unlessreport(true)is called on them.
- Apply input validation to the default value too in
Input - Added
FuzzySelectbehindfuzzy-selectfeature - Allow history processing for
Input::interact_text*behindhistoryfeature - Added
interact_*_optmethods forMultiSelectandSort.
- Updated MSRV to
1.51.0 Editoris gated behindeditorfeaturePassword,Theme::format_password_promptandTheme::format_password_prompt_selectionare gated behindpasswordfeature- Remove
Select::paged(),Sort::paged()andMultiSelect::paged()in favor of automatic paging based on terminal size
Input::validate_withcan take aFnMut(allowing multiple references)
Input::interact*methods take&mut selfinstead of&self
- Added
wait_for_newlinetoConfirm - More secure password prompt
- More documentation
- Added
interact_textmethod forInputprompt - Added
inline_selectionstoColorfulTheme
- Removed
theme::CustomPromptCharacterTheme Inputvalidators now take the input typeTas argConfirmhas nodefaultvalue by default now
- Updating some docs
theme::ColorfulThemedefault styles are for stderr
- Removed
theme::SelectionStyleenum - Allowed more customization for
theme::Themetrait by changing methods - Allowed more customization for
theme::ColorfulThemeby changing members - Renamed prompt
ConfirmationtoConfirm - Renamed prompt
PasswordInputtoPassword - Renamed prompt
OrderListtoSort - Renamed prompt
CheckboxestoMultiSelect
- Improved colored theme
- Improved cursor visibility manipulation