While browsing a list, the user can now type the entry he wants to select, instead of using arrows.
A search parameter on inquirer.List can be set to True (False by default) so the user can see its current typed selection ( which is displayed using the already existing get_current_value method).
inquirer.List("menu", message="Select an option",choices=choices, search=True)
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.
What this adds:
While browsing a list, the user can now type the entry he wants to select, instead of using arrows.
A
search
parameter on inquirer.List can be set to True (False by default) so the user can see its current typed selection ( which is displayed using the already existingget_current_value
method).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
.