- Added
dialouger::Result
anddialouger::Error
- Added a
BasicHistory
implementation forHistory
- Added vim mode for
FuzzySelect
- All prompts implement
Clone
- Resolve some issues on Windows where pressing shift keys sometimes aborted dialogs
- Resolve
MultiSelect
checked and unchecked variants looking the same on Windows Input
values that are invalid are now also stored inHistory
- Resolve some issues with cursor positioning in
Input
when usingutf-8
characters - Correct page is shown when default selected option is not on the first page for
Select
- Fix panic in
FuzzySelect
when using non-ASCII characters - Add handling of
Delete
key forFuzzySelect
- Updated MSRV to
1.63.0
due 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 self
instead of&mut self
- Prompt builder functions now return
Self
instead of&mut Self
- Prompt interaction functions now take
self
instead of&self
- Prompt interaction functions and other operations now return
dialouger::Result
instead ofstd::io::Result
- Rename
Validator
toInputValidator
- 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_length
toMultiSelect
,Select
andSort
- Allow completion support for
Input::interact_text*
behindcompletion
feature
- All prompts
*::new
will now don't report selected values unlessreport(true)
is called on them.
- Apply input validation to the default value too in
Input
- Added
FuzzySelect
behindfuzzy-select
feature - Allow history processing for
Input::interact_text*
behindhistory
feature - Added
interact_*_opt
methods forMultiSelect
andSort
.
- Updated MSRV to
1.51.0
Editor
is gated behindeditor
featurePassword
,Theme::format_password_prompt
andTheme::format_password_prompt_selection
are gated behindpassword
feature- Remove
Select::paged()
,Sort::paged()
andMultiSelect::paged()
in favor of automatic paging based on terminal size
Input::validate_with
can take aFnMut
(allowing multiple references)
Input::interact*
methods take&mut self
instead of&self
- Added
wait_for_newline
toConfirm
- More secure password prompt
- More documentation
- Added
interact_text
method forInput
prompt - Added
inline_selections
toColorfulTheme
- Removed
theme::CustomPromptCharacterTheme
Input
validators now take the input typeT
as argConfirm
has nodefault
value by default now
- Updating some docs
theme::ColorfulTheme
default styles are for stderr
- Removed
theme::SelectionStyle
enum - Allowed more customization for
theme::Theme
trait by changing methods - Allowed more customization for
theme::ColorfulTheme
by changing members - Renamed prompt
Confirmation
toConfirm
- Renamed prompt
PasswordInput
toPassword
- Renamed prompt
OrderList
toSort
- Renamed prompt
Checkboxes
toMultiSelect
- Improved colored theme
- Improved cursor visibility manipulation