eca-intellij icon indicating copy to clipboard operation
eca-intellij copied to clipboard

Emacs key bindings (InteilliJ plugin)

Open hlship opened this issue 6 months ago • 6 comments

I find I keep tripping over my muscle-memory emacs key bindings, such as ctrl-a and ctrl-e, when typing in my prompt. They aren't supported so it's back to the mouse.

hlship avatar May 11 '26 22:05 hlship

@hlship not sure i got this feature request, what keybinginds you see it's missing and what they are supposed to do?

ericdallo avatar May 11 '26 22:05 ericdallo

Standard emacs keybinds (that work in most IntelliJ editors and fields).

^A - beginning of line ^E - end of line ^P - previous line ^N - next line ^F - forward char ^B - backward char

hlship avatar May 11 '26 22:05 hlship

ah you mean there is a emacs plugin for intellij and eca is not behaving as expected with that plugin? that would explain, since it's a webview wrapped so would require a little touch to make that work

ericdallo avatar May 11 '26 23:05 ericdallo

AFAIK, in any other editors inside IntelliJ, I can use the emacs keybindings I listed above, so it is jarring that I can't in the ECA prompt window. That fact that its a webview is an implementation detail to me, a user.

It might be a generational thing; the emacs hackers who wrote Bash and IntelliJ and other tools probably thought implementing those keybindings as so obvious it probably never even made it into a spec; but if you started in the generation(s) of tools after, you might not even miss it. Meanwhile, I used a non-standard emacs for about 10 years early in my career (as in, when I was a co-op student) so it's literally baked into my fingers.

hlship avatar May 12 '26 15:05 hlship

Got it! yeah I forgot intellij had the eacs keybindings option built-in, and not as a plugin, so we should be able to fix it, will take a look!

ericdallo avatar May 12 '26 18:05 ericdallo

Fixed in the next release, now we check if the user keymap is emacs adding the proper keybindings, LMK if any issues!

ericdallo avatar May 12 '26 19:05 ericdallo