Releases: AlecAivazis/survey
Added ability to specify stdio
This release adds the ability for the user to specify a particular stdout/in for their prompts, making it much easier to write integration tests for their prompts as well as the standard ones provided by survey
Compatability Fixes
This PR fixes some compatability issues with Ubuntu's terminal
Added support for Home, End, and Delete keys
This release adds support for Home, End and Delete keys. They work as expected on all supported terminals, even when the line overflows! Major thanks to @stefanvassilev for this!
Added additional information to select and multi select
v1.5.0 added the ability to filter the options in Select and MultiSelect prompts, however it was relatively hidden to users who did not know of the feature. This caused a slightly confusing user experience when they typed as options would just disppear. This release attempts to address this by adding an instructional message alongside the help prompt, indicating that the user can type to filter as well as use the arrow keys to navigate.
Added filtering to Select/MultiSelect
This release adds the ability for the user to filter options in a Select and MultiSelect prompt to be filtered by typing. In order to not conflict with the ability to move the cursor with the j
and k
keys, that functionality is now toggled on by pressing esc
.
Usability Updates
This releases adds a few small improvements to survey:
- Fixed a bug that prevented
survey.Required
from allowing any response from asurvey.Confirm
prompt. - the cursor in
survey.Select
andsurvey.MultiSelect
can now be moved with j/k to emulate vim keybindings
v1.4.1: added additional configuration to editor prompt (#110)
* allow to change the editor behavior Add two fields `HideDefault` and `AppendDefaul` to `Editor`. If `HideDefault` is `true`, the default value is not shown before the launch of the editor. By default this value is `false`. If `AppendDefault` is `true`, the default value is written to the temporary file before the launch of the editor and `Prompt()` returns the empty string if the contents of the temporary file is empty. By default this value is `false`. * add tests of HideDefault and AppendDefault to tests/editor.go
Added Transform field to Question
This release adds the ability for the user to specify a transformer for a particular field in order to change the user's input into any other arbitrary value.
v1.3.4
renamed task file
v1.3.1
Added support for casting answer to nested types
-
added tests for copying nested structures with casts
-
added tests for copying nested structures with casts
-
cleaned up test
-
added tests for editor prompt
-
fixed issue preventing nested casts
-
fixed typo in comment