AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 350 forks source link

MultiSelect Options filter removes after selection in LARGE lists #441

Closed blacktop closed 1 year ago

blacktop commented 1 year ago

What operating system and terminal are you using? macOS latest An example that showcases the bug.

            choices := []int{}
            prompt := &survey.MultiSelect{
                Message:  "Choose crashlog(s):",
                Options:  logs,
                PageSize: 50,
            }
            if err := survey.AskOne(prompt, &choices); err != nil {
                if err == terminal.InterruptErr {
                    log.Warn("Exiting...")
                    os.Exit(0)
                }
                return err
            }

What did you expect to see? when I type it filters and then when I select with or it checks all the checkboxes I select but holds the filter until I OR What did you see instead? when I type it filters and then when I select with or it removes the filter and I can't tell what I've selected anymore.

blacktop commented 1 year ago

I read the README 🤦