diff --git a/internal/prompter/huh_prompter.go b/internal/prompter/huh_prompter.go index a443f0820..95bf43fab 100644 --- a/internal/prompter/huh_prompter.go +++ b/internal/prompter/huh_prompter.go @@ -227,6 +227,7 @@ func (p *huhPrompter) buildMultiSelectWithSearchForm(prompt, searchPrompt string huh.NewGroup( huh.NewInput(). Title(searchPrompt). + Placeholder("Type to search, Ctrl+U to clear"). Accessor(queryAccessor), huh.NewMultiSelect[string](). Title(prompt). diff --git a/internal/prompter/huh_prompter_test.go b/internal/prompter/huh_prompter_test.go index 7b5217d5e..e039038ad 100644 --- a/internal/prompter/huh_prompter_test.go +++ b/internal/prompter/huh_prompter_test.go @@ -113,7 +113,7 @@ func newTestHuhPrompter() *huhPrompter { func runForm(t *testing.T, f *huh.Form, ix interaction) { t.Helper() r, w := io.Pipe() - f.WithInput(r).WithOutput(io.Discard) + f.WithInput(r).WithOutput(io.Discard).WithWidth(80) errCh := make(chan error, 1) go func() { errCh <- f.Run() }()