-
requestty-ui- Remove
dbg!inInput. Fixes #12
- Remove
The msrv has been bumped up to 1.56
-
requestty-
Allow programmatic customisation of
Question::editor -
Update
smallvecversion.
-
-
requestty-ui-
Allow customising the symbol set used during rendering.
-
Return error on 0 sized terminal instead of panicking.
-
Update
crosstermversion.
-
-
requestty-
Allow using the Right Arrow key to auto-complete default
-
Implement #6 - Add support for handling abort with
EscEarlier, when the user pressed the
Esckey, nothing would happen asui::Inputwould just pass the event on to the prompt. Now 2 other actions can be specified.OnEsc::Terminate: returns anErrwhich will propagate upwards, essentially cancelling thePromptModuleOnEsc::SkipQuestion: returnsNone, showing that the question has been skipped -
Fix #7 - input returns empty string even if default was given
-
-
requestty-ui-
Added
OnEscto configure behaviour onEscforInputs -
Added the
skippedparameter toPrompt::write_finished_message -
Added
ErrorKind::Aborted -
Removed
ErrorKind::map_terminated- this was a temporary code that came about while implementing a feature, but was never deleted. -
Removed
StringInput::has_value- this was used to get the capacity of the underlying string buffer due to a weird implementation ofQuestion::input -
Changed
StringInput::finishto returnStringinstead ofOption<String>- it usedhas_valueto chooseSomeorNone. Again, due to a weird implementation ofQuestion::input
-
-
requestty-
Implement #4 - defaults are now shown in a different way for the
input,intandfloatprompts.Earlier, the default value would just be shown on the side at all times. This is even if the default will not be selected which can be misleading. This change shows the default as greyed out text in the input itself. It also allows pressing 'Tab' to make the current input the default if the current input value is the start of the default.
-
Added the
validate_on_keyoption forinput,int,floatandpasswordprompts.validate_on_keyif supplied will be called on every change of input. If validation fails, the input text is displayed in red.validatestill needs to be supplied asvalidate_on_keyis purely cosmetic, and does not prevent user submission
-
-
requestty- Fix #3
-
requestty-ui- Update crossterm dependency
-
requestty- Fix #2
-
requestty-ui- Change
Widget::cursor_posto return the position relative to the screen instead of the start of the root widget - Update dependencies
- Change