pick icon indicating copy to clipboard operation
pick copied to clipboard

quit using `q`, how to do it now that register_custom_handler is gone?

Open kootenpv opened this issue 3 years ago • 6 comments

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))

kootenpv avatar Jan 29 '23 21:01 kootenpv

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.

antonc42 avatar Feb 27 '23 20:02 antonc42

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.

bluenote10 avatar Feb 27 '23 21:02 bluenote10

Yup still hoping for the return of q

kootenpv avatar Mar 04 '23 01:03 kootenpv

I support this proposal

FelixFourcolor avatar Apr 27 '23 07:04 FelixFourcolor

@wong2 perhaps rolling back to the earlier version is an option? why was there an upgrade that removed perfect functionality?

kootenpv avatar Apr 28 '23 07:04 kootenpv

I just created a fork that enables quitting with q, and is currently in pull request.

FelixFourcolor avatar Apr 28 '23 07:04 FelixFourcolor

Same. I am also wondering why such important functionality was removed?

LeLunZ avatar Mar 29 '24 01:03 LeLunZ

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!

aisk avatar Jun 27 '24 14:06 aisk