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 command mode #9249

Open
scabug opened this Issue Mar 25, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented Mar 25, 2015

As reported at https://github.com/scala/scala/issues/4392, not everyone appreciates REPL's colon-command syntax. Since JLine already supports vi mode line edits, one accommodation would be to recognize a colon while in escaped edit mode, erase the line, draw a colon and accept command text.

This improvement would delight that fraction of users who <3 vi and also use a lot of ::. Probably under a flag.

This would make even more sense with line healing enabled.

scala> 42
res0: Int = 42

scala> :: Nil
res1: List[Int] = List(42)
@scabug

This comment has been minimized.

Copy link
Author

scabug commented Mar 25, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9249?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.6

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Apr 19, 2015

Li Haoyi (lihaoyi) said:
This is "fixed" in the Ammonite REPL, which doesn't use special colon-commands at all

@ 42
res4: Int = 42
@ ::
res5: scala.collection.immutable.::.type = ::

I have never used vim mode, but since we're not hogging syntax you could give it a shot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment