quit using `q`, how to do it now that register_custom_handler is gone?
Is there a way to achieve it?
I used to be able to do this:
picker.register_custom_handler(ord("q"), lambda _: sys.exit(0))
I would also like to know why this feature was removed and if there is a way to re-implement it. It was extremely useful being able to add custom actions for keys. The removal of this feature has made this module all but unusable for me.
Same here. From a UX perspective, the selection gives the feeling of being locked in. I'm instinctively pressing q or ESC all the time, so having some means of aborting would be really nice.
Yup still hoping for the return of q
I support this proposal
@wong2 perhaps rolling back to the earlier version is an option? why was there an upgrade that removed perfect functionality?
I just created a fork that enables quitting with q, and is currently in pull request.
Same. I am also wondering why such important functionality was removed?
There is a new approch to quit the pick with q by #126, and shipped in v2.4.0b1. Thanks @Henri-ColibrITD for the contribution!