bhauman / rebel-readline

Terminal readline library for Clojure dialects
Eclipse Public License 1.0
680 stars 37 forks source link

Keybind to submit line no matter where the cursor is #152

Closed elzibubble closed 6 years ago

elzibubble commented 6 years ago

Many websites / messaging apps either use <shift-enter> to insert a newline and have <enter> work wherever, or <enter> inserts a newline and <ctrl-enter> submits the line wherever. Please adopt one of these conventions. This may already be possible through custom keybinds but I'm not a JLine expert and I don't know what to bind. Anyway it seems reasonable to expect by default.

bhauman commented 6 years ago

This has bee addressed in #101

bhauman commented 6 years ago

It is very difficult to adopt the conventions you mentioned, I tried. It's trivial to bind shift-enter and other things in a GUI environment, much harder in the terminal using Jline.

elzibubble commented 6 years ago

OK, thanks anyway. Might be worth a mention in the README to intercept future issues?