laloch / xontrib-fzf-widgets

Set of fzf widgets for xonsh
GNU General Public License v3.0
33 stars 18 forks source link

Ctrl-C during history search quits xonsh #13

Open eugenesvk opened 3 years ago

eugenesvk commented 3 years ago

I'm used to cancelling readline history search with CtrlC However, when I do that with your great xontrib, I instead get an error and xonsh quits How do I fix this so that CtrlC simply returns to prompt? Thanks!

Traceback (Windows Terminal): ```python Traceback (most recent call last): File "C:\Python\Scripts\xonsh-script.py", line 33, in sys.exit(load_entry_point('xonsh==0.9.26', 'console_scripts', 'xonsh')()) File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22505, in main _failback_to_other_shells(args, err) File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22474, in _failback_to_other_shells raise err File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22503, in main sys.exit(main_xonsh(args)) File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22541, in main_xonsh shell.shell.cmdloop() File "C:\Python\lib\site-packages\xonsh\ptk_shell\shell.py", line 338, in cmdloop line = self.singleline(auto_suggest=auto_suggest) File "C:\Python\lib\site-packages\xonsh\ptk_shell\shell.py", line 307, in singleline line = self.prompter.prompt(**prompt_args) File "C:\Python\lib\site-packages\prompt_toolkit\shortcuts\prompt.py", line 1013, in prompt return self.app.run(set_exception_handler=set_exception_handler) File "C:\Python\lib\site-packages\prompt_toolkit\application\application.py", line 848, in run return loop.run_until_complete( File "C:\Python\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "C:\Python\lib\site-packages\prompt_toolkit\application\application.py", line 650, in run_async assert not self._is_running, "Application is already running." AssertionError: Application is already running. ```