Expand description
A one-line editor. Every text field in mach is built from it — the title, the due date, category names, the command line, the search box, and each block of a task’s body. Cursor and selection indices are Unicode grapheme clusters; display geometry is still measured in cells.
Selection follows macOS: Shift extends, Option jumps by word, and Shift+Option+W selects the word under the cursor.
Structs§
- Text
Input - View
- What
TextInput::visiblehands the UI: text, caret column, and an optional selection span in display columns within that text. - Wrapped
Line - One visual row of a soft-wrapped field.
- Wrapped
View - Soft-wrapped layout for body / description painting.
Functions§
- wrap_
breaks - Soft-wrap graphemes into
(start, end)ranges of at mostwidthdisplay columns. Prefers breaking after a space; otherwise hard-breaks.