joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.54k stars 36 forks source link

Mac support #64

Closed anki-code closed 1 year ago

anki-code commented 1 year ago

Hello! Thank you for the awesome tool! Just want to let you know that on Mac with iTerm2 or standard Terminal the combinations around <Any key>+Enter are not working. The one way to run code on Mac is to switch to Vi mode and press Enter. It will be cool to fix some day. Thanks!

joouha commented 1 year ago

Euporie uses the CSI-u terminal mode to recognise these key-sequences (which traditionally is not possible on a vt100 terminal).

I'm not sure that the standard MacOS terminal supports CSI-u, so you'll probably have to use the Ctrl + e and Ctrl + r key-bindings instead.

iTerm2 does support CSI-u key-bindings, but I believe you have to enable them in the settings:

There are instructions for other terminals in euporie's documentation here.

I've recently made some changes in the dev branch which might help with this, and terminal configuration unnecessary for some terminals - see https://github.com/joouha/euporie/issues/61.

anki-code commented 1 year ago

very helpful, thanks!