cursive-ide / emacs-plus

Some patches to make the IntelliJ Emacs+ plugin work correctly with recent versions of IntelliJ.
Other
41 stars 18 forks source link

Can't bind "ESC <" to tw-begin #1

Open nessus42 opened 6 years ago

nessus42 commented 6 years ago

Also I can't bind ESC > to tw-end.

I can set such a keyboard shortcut in the Keymap Preferences for Emacs+ Patched, but the shortcut doesn't actually work. I.e., nothing seems to happen.

P.S. Intellij Version is IntelliJ IDEA Ultimate 2017.2.4.

cursive-ide commented 6 years ago

This is a command that you would use in a toolwindow, right? What I suspect is happening is that ESC when in a toolwindow is processed at a pretty low level in IntelliJ - it always means return to the current editor. I suspect that might be being caught before normal event processing takes place - I'll try to debug to confirm.

nessus42 commented 6 years ago

Sorry for the delay in responding. Maybe I shouldn't be binding it to tw-end, but rather to "Move caret to text end"? I just tried doing that, and now things work fine in an editor, which is where I care about it the most.

I didn't realize that tw-* was for non-Editor windows.