Created
March 12, 2019 14:04
-
-
Save paulmr/f3e373023ced94531da2088b6b34cebc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/api/src/scala/scaled/major/EditingMode.scala b/api/src/scala/scaled/major/EditingMode.scala | |
| index 96171fb..c22afe7 100644 | |
| --- a/api/src/scala/scaled/major/EditingMode.scala | |
| +++ b/api/src/scala/scaled/major/EditingMode.scala | |
| @@ -40,7 +40,8 @@ abstract class EditingMode (env :Env) extends ReadingMode(env) { | |
| bind("newline", "ENTER", "S-ENTER"). | |
| bind("indent-for-tab-command", "TAB"). | |
| - // TODO: open-line, split-line, ... | |
| + bind("open-line", "C-o"). | |
| + // TODO: split-line, ... | |
| bind("indent-rigidly", "M-RIGHT"). | |
| bind("unindent-rigidly", "M-LEFT"). | |
| @@ -260,6 +261,13 @@ abstract class EditingMode (env :Env) extends ReadingMode(env) { | |
| buffer.split(view.point()) | |
| } | |
| + @Fn("""Opens a line above the current line.""") | |
| + def openLine() { | |
| + val was = view.point() | |
| + newline() | |
| + view.point() = was | |
| + } | |
| + | |
| @Fn("Indents the current line or region, or inserts a tab, as appropriate.") | |
| def indentForTabCommand () { | |
| // TODO: I suppose we'll eventually have to support real tabs... sigh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment