percol icon indicating copy to clipboard operation
percol copied to clipboard

How to select nothing?

Open polm opened this issue 9 years ago • 6 comments

Is there a standard way to select nothing in percol? I've been using ctrl+c so far but it prints an error and doesn't clean up the screen.

polm avatar Jul 28 '15 04:07 polm

ctrl+c is a standard way. It ends your percol session without any selection.

What kind of errors did you get?

mooz avatar Jul 28 '15 04:07 mooz

This is the error I get:

Traceback (most recent call last):
  File "/usr/bin/percol", line 31, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/percol/cli.py", line 284, in main
    exit_code = percol.loop()
  File "/usr/lib/python2.7/site-packages/percol/__init__.py", line 120, in __exit__
    curses.endwin()
_curses.error: endwin() returned ERR

I'm using 0.1.0 so I guess it's out of date, not sure if that should make a difference though.

polm avatar Jul 28 '15 04:07 polm

Upgraded to the latest pip version and still getting the error. I'm using Arch Linux, Python2 version is 2.7.10. If there's anything else it'd help to know please tell me.

polm avatar Jul 28 '15 04:07 polm

Any idea why I'm getting the errors? Am I doing something wrong?

polm avatar Aug 05 '15 06:08 polm

This is also an issue with https://github.com/mooz/percol/blob/4b28037e328da3d0fe8165c11b800cbaddcb525e/README.md?plain=1#L196 when used as a library. It looks like a keymap issue (not had chance to play with that yet).

clach04 avatar Aug 28 '24 06:08 clach04

Looking at https://github.com/mooz/percol/issues/56 looks like need to map to cancel()

clach04 avatar Aug 28 '24 06:08 clach04