"^M" does not work either. "^G", for example, does work. It's okay to force-accept on plain enter because ctrl-j is also bound to accept-line. The functionality itself does work, on "^X^M".
Tested on xterm, urxvt, alacritty, in and out of tmux; Rebel-readline version 0.1.4.
Bonus round: Can't seem to bind "^J" either, both like that (which is how it's listed in :repl/key-bindings), nor as "^@" (which is what Vim gives me on C-v C-j, which inserts the terminal code for ctrl-j).
Also might make sense to allow force-accept on enter through an option. This sounds like a point of confusion. I understand that there's been a lot of thought put into this given the discussion in #101, but since C-j is duplicating accept-line, Enter could act closer to what is expected from a line editor, not from text editor.
A snippet from https://github.com/bhauman/rebel-readline/issues/101#issuecomment-400018676 doesn't seem to work for me:
"^M"
does not work either."^G"
, for example, does work. It's okay to force-accept on plain enter because ctrl-j is also bound toaccept-line
. The functionality itself does work, on"^X^M"
.Tested on xterm, urxvt, alacritty, in and out of tmux; Rebel-readline version
0.1.4
.Bonus round: Can't seem to bind
"^J"
either, both like that (which is how it's listed in:repl/key-bindings
), nor as"^@"
(which is what Vim gives me onC-v C-j
, which inserts the terminal code for ctrl-j).Also might make sense to allow force-accept on enter through an option. This sounds like a point of confusion. I understand that there's been a lot of thought put into this given the discussion in #101, but since C-j is duplicating accept-line, Enter could act closer to what is expected from a line editor, not from text editor.