Modularizing textEditor, moving it to the filename that matches the module

This commit is contained in:
Dustin Swan 2026-04-03 16:17:44 -06:00
parent ae7ee9418b
commit 8e05690ef3
No known key found for this signature in database
GPG key ID: 30D46587E2100467

View file

@ -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 \
} }
} }
}; };
@