gorilla-repl icon indicating copy to clipboard operation
gorilla-repl copied to clipboard

emacs key-bindings?

Open aaelony opened this issue 10 years ago • 8 comments

My fingers are trained to navigate a line with ctrl+a for the start and ctrl+e for the end. Is it difficult to introduce emacs such cursor positioning emacs key bindings in gorilla repl?

aaelony avatar Jan 09 '15 21:01 aaelony

This is supported in CodeMirror, so should be easy to do. In fact, I recall disabling emacs key-bindings at one point because they were interfering with something or other. I'll look into re-enabling them.

JonyEpsilon avatar Jan 14 '15 15:01 JonyEpsilon

that's excellent. thanks for looking into it.

aaelony avatar Jan 14 '15 18:01 aaelony

It's an indispensable feature. It's really surprised me when I found gorilla do not support emacs shortcuts in Mac OS X, as far as I know almost any place where you can edit text you can use emacs shortcuts in Mac OS X , it really frustrated me when it failed to work in Gorilla.

boathit avatar Nov 25 '15 12:11 boathit

:+1:

Heliosmaster avatar Dec 18 '15 17:12 Heliosmaster

+1 from here. My fingers' muscles are also trained so thus it is extremely difficult to work with the worksheet without those navigation shortcuts.

haochenx avatar Jan 06 '16 16:01 haochenx

In fact, I recall disabling emacs key-bindings at one point because they were interfering with something or other. I'll look into re-enabling them.

Can you recall what the default Mac keybindings were interfering with? I just ripped out the code that overrides all the standard Mac keybindings and Gorilla is working fine in El Capitan's Safari—and I'm not pulling out my hair.

edw avatar Feb 07 '16 16:02 edw

I dont' clearly recall, I'm afraid. I seem to remember there were a few minor collisions ... I think Ctrl+D was a problem.

It would be easy enough to remove the commands from the emacsy keymap that cause trouble and leave the rest in. Not sure whether that's more or less frustrating though: to have something that doesn't support the commands you want, or nearly supports the commands you want!

JonyEpsilon avatar Feb 24 '16 17:02 JonyEpsilon

+1 for getting Emacs bindings back.

drewokane avatar Aug 10 '16 05:08 drewokane