jyp / boon

Ergonomic Command Mode for Emacs
GNU General Public License v3.0
323 stars 34 forks source link

ESC doesn't exit insert mode when running in a terminal #126

Open pdcawley opened 1 year ago

pdcawley commented 1 year ago

When running on the terminal, emacs does preprocessing of ESC, which means it doesn't escape back to command mode. I took a look at evil-mode to try and work out how it makes the escape key work, and it's doing something cunning with overriding-local-map to catch the escape before it goes through preprocessing, but I couldn't work out how to port it to boon.

adamcstephens commented 1 year ago

Ahh, I wondered if I was missing something but just tested with a GUI and everything worked correctly. Without escape handling this makes boon somewhat painful to use in a terminal.