Modularizing textEditor, moving it to the filename that matches the module
This commit is contained in:
parent
ae7ee9418b
commit
8e05690ef3
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
|
@textEditor
|
||||||
|
|
||||||
textEditorBuffers = [];
|
textEditorBuffers = [];
|
||||||
|
|
||||||
textEditor = name \
|
textEditor = name \
|
||||||
# defaults = {};
|
# defaults = {};
|
||||||
# c = { ...defaults, ...config };
|
# c = { ...defaults, ...config };
|
||||||
|
|
@ -310,7 +313,8 @@ textEditor = name \
|
||||||
| Key { key = "Control" } \ escape state
|
| Key { key = "Control" } \ escape state
|
||||||
| Key { key = "Backspace" } \ backspace state
|
| Key { key = "Backspace" } \ backspace state
|
||||||
| Key { key = "Enter" } \ enter state
|
| Key { key = "Enter" } \ enter state
|
||||||
| Key { key = k } \ insertChar k state)
|
| Key { key = k, printable = True } \ insertChar k state
|
||||||
|
| _ \ { state = state , emit = [] })
|
||||||
| Normal \ (event
|
| Normal \ (event
|
||||||
| Scrolled delta \ (
|
| Scrolled delta \ (
|
||||||
maxLineLen = fold (acc line \ max acc (len line)) 0 state.lines;
|
maxLineLen = fold (acc line \ max acc (len line)) 0 state.lines;
|
||||||
|
|
@ -401,3 +405,4 @@ textEditor = name \
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@
|
||||||
Loading…
Add table
Add a link
Reference in a new issue