aisk / pick

create curses based interactive selection list in the terminal
MIT License
721 stars 60 forks source link

Quality of life improvements #104

Closed FelixFourcolor closed 1 year ago

FelixFourcolor commented 1 year ago

1) Add quit feature. Pressing Q quits the menu and returns (None, None). README is edited to include this feature. (I tried allowing the user to choose their own quit keys by passing a param to pick, but that part got some bugs I couldn't fix. So Q is the only accepted key for now.)

2) Improve type hinting. Now pick takes a Sequence of arbitrary type and returns the same type.

3) Add support for negative default_index.