percol
percol copied to clipboard
How to select nothing?
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.
ctrl+c
is a standard way. It ends your percol session without any selection.
What kind of errors did you get?
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.
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.
Any idea why I'm getting the errors? Am I doing something wrong?
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).
Looking at https://github.com/mooz/percol/issues/56 looks like need to map to cancel()