racket / expeditor

Other
9 stars 15 forks source link

readline compatibility, configurability #3

Closed Bogdanp closed 3 years ago

Bogdanp commented 3 years ago

Aside from #2, the other big difference from readline for me is the interpretation of ^J, which is accept-line under readline (the same as ^M). How compatible should expeditor be with readline? Will expeditor expose the binding functionality to make stuff like this configurable?

mflatt commented 3 years ago

Yes, there will be a way to configure keybindings.

It sounds like ^J should be the same as ^M, though. I was looking for a way to support three actions: accept if complete, accept unconditionally (assume complete), or just insert a newline (assume incomplete). On Mac OS, Option-Return tends to be the last one, so that's why Meta-^M is allocated that way. Is there a convention for the middle one?

Bogdanp commented 3 years ago

I don't know of a convention for "accept unconditionally," but Meta-^J seems fine to me. Under readline, that defaults to vi-editing-mode, which I don't think would apply here. Since you've already mapped ^J to ee-newline/accept, I'm going to close this and open new issues if anything else pops up. Thanks!