CITGuru / PyInquirer

A Python module for common interactive command line user interfaces
MIT License
1.91k stars 235 forks source link

Adding new prompt type of listwithfilter #140

Open timharris777 opened 3 years ago

timharris777 commented 3 years ago

This new prompt type is just like list except when you type it filters the list of choices to those that match the text you have typed. I have tested and it is interchangeable with any list type. Just chance it from list to listwithfilter.

Much of the work was already done. I just had to modify someone elses script to work with PyInquirer. Credit goes to @gbataille for the majority of the work. Original file can be found here: https://github.com/gbataille/password-organizer/blob/master/password_organizer/cli_menu/prompts/listmenu.py

gbataille commented 3 years ago

thanks for the mention 👍

timharris777 commented 3 years ago

@CITGuru , are you still maintaining this project?

timharris777 commented 3 years ago

@CITGuru, any updates?

barbosso commented 1 year ago

This new prompt type is just like list except when you type it filters the list of choices to those that match the text you have typed. I have tested and it is interchangeable with any list type. Just chance it from list to listwithfilter.

Much of the work was already done. I just had to modify someone elses script to work with PyInquirer. Credit goes to @gbataille for the majority of the work. Original file can be found here: https://github.com/gbataille/password-organizer/blob/master/password_organizer/cli_menu/prompts/listmenu.py

when the list is long it doesn't scroll down (