New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REPL keybindings: ctrl-y should not kill session #8307
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8307?orig=1 |
@adriaanm said: |
@adriaanm said: |
Erik Allik (eallik) said (edited on Feb 18, 2014 6:17:33 PM UTC): Oh, but, Ctrl-z is already doing the right thing (suspending the interpreter (which is a bit broken as well, but I've opened another ticket for that)—not sure why you added that as well. |
Kenji Matsuoka (kamatsuoka) said: |
Li Haoyi (lihaoyi) said (edited on Apr 19, 2015 1:33:18 AM UTC): @ val x = 123
x: Int = 123
@ abcdefg <CTRL-C>
@
@ x = "<CTRL-Y>"
@ x = "abcdefg" |
I'm not able to reproduce this in 2.11.12 or 2.12.11 or 2.13.1 or 2.13.2
on this kind of thing, we take whatever JLine 3 gives us (JLine 3 is what we're using as of Scala 2.13.2; before that we were on JLine 2) it works for me in both 2.13.1 and 2.13.2, not sure about older versions |
scala
, like (I think all) other interactive intepreters (like Ruby'sirb
, Python, etc) support things likeC-r
for reverse command search,C-a
&C-e
for home/end,C-k
for killing (cutting) a line to the end,C-f
andC-b
for moving,C-d
for forward-delete-char, etc; however, a really annoying deviation from this is the lack of support forC-y
(paste last killed item from kill ring) (and therefore probablyAlt-y
as well), and not only lack of support but unexpected behavior:C-y
actually stops the interpreter just the same asC-z
.(using
C-
to meanCtrl-
)The text was updated successfully, but these errors were encountered: