From 5ac2b873fa19a12644e216f90754bfa719552b41 Mon Sep 17 00:00:00 2001 From: Lucas dos Santos Abreu Date: Wed, 21 Oct 2020 08:44:52 -0300 Subject: [PATCH] (fix): suggestions --- examples/inputfilesuggestion.go | 2 +- input.go | 2 +- input_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/inputfilesuggestion.go b/examples/inputfilesuggestion.go index b00d25ef..8872cc4d 100644 --- a/examples/inputfilesuggestion.go +++ b/examples/inputfilesuggestion.go @@ -19,7 +19,7 @@ var q = []*survey.Question{ Prompt: &survey.Input{ Message: "Which file should be read?", Suggest: suggestFiles, - Help: "Any file, may not even exit yet", + Help: "Any file; do not need to exist yet", }, Validate: survey.Required, }, diff --git a/input.go b/input.go index cc2362a8..054c11b2 100644 --- a/input.go +++ b/input.go @@ -45,7 +45,7 @@ var InputQuestionTemplate = ` {{- if .ShowAnswer}} {{- color "cyan"}}{{.Answer}}{{color "reset"}}{{"\n"}} {{- else if .PageEntries -}} - {{- .Answer}} [Use arrows to navegate, enter to select, type to complement answer] + {{- .Answer}} [Use arrows to move, enter to select, type to continue] {{- "\n"}} {{- range $ix, $choice := .PageEntries}} {{- if eq $ix $.SelectedIndex }}{{color $.Config.Icons.SelectFocus.Format }}{{ $.Config.Icons.SelectFocus.Text }} {{else}}{{color "default"}} {{end}} diff --git a/input_test.go b/input_test.go index 5a6f160f..763490a6 100644 --- a/input_test.go +++ b/input_test.go @@ -97,7 +97,7 @@ func TestInputRender(t *testing.T) { SelectedIndex: 1, }, fmt.Sprintf( - "%s What is your favorite month: February [Use arrows to navegate, enter to select, type to complement answer]\n"+ + "%s What is your favorite month: February [Use arrows to move, enter to select, type to continue]\n"+ " January\n%s February\n March\n etc...\n", defaultIcons().Question.Text, defaultPromptConfig().Icons.SelectFocus.Text, ),