magmax / python-inquirer

A collection of common interactive command line user interfaces, based on Inquirer.js (https://github.com/SBoudrias/Inquirer.js/)
MIT License
992 stars 98 forks source link

Adding a "searching" feature to List() #523

Closed fullfox closed 6 months ago

fullfox commented 6 months ago

What this adds:

inquirer.List("menu", message="Select an option",choices=choices, search=True)

Screenshot from 2024-02-02 15-16-26

I hope this is clean enough.

I though the user should always be able to select an entry by typing it. I could not think of a case in which that would be unwanted, so that's why the "select by typing" feature still works with search=False.