Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Releases: AlecAivazis/survey

Added ability to specify stdio

21 Jun 15:16
Compare
Choose a tag to compare

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

10 Apr 15:29
Compare
Choose a tag to compare

This PR fixes some compatability issues with Ubuntu's terminal

Added support for Home, End, and Delete keys

07 Apr 19:07
Compare
Choose a tag to compare

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

11 Mar 17:37
9d3458c
Compare
Choose a tag to compare

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

11 Mar 16:39
12f3e71
Compare
Choose a tag to compare

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

27 Feb 15:52
9f89d9d
Compare
Choose a tag to compare

This releases adds a few small improvements to survey:

  • Fixed a bug that prevented survey.Required from allowing any response from a survey.Confirm prompt.
  • the cursor in survey.Select and survey.MultiSelect can now be moved with j/k to emulate vim keybindings

v1.4.1: added additional configuration to editor prompt (#110)

11 Nov 17:35
Compare
Choose a tag to compare
* 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

29 Oct 03:02
Compare
Choose a tag to compare

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

29 Sep 23:19
Compare
Choose a tag to compare
renamed task file

v1.3.1

29 Sep 23:20
Compare
Choose a tag to compare

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