Repository navigation
Commit 0fae175
input: gutter markers, range decorations, and inline widgets
Editors can now show feature-owned markers in a reserved gutter lane,
geometric Fill/Frame decorations over UTF-8 ranges, and non-document
inline widgets at an offset. All three follow text edits and are exposed
through InputBaseState setters plus an Editor builder for the marker
renderer; markers report clicks through InputEvent::GutterMarkerMouseDown.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 32030ed commit 0fae175
11 files changed
Lines changed: 848 additions & 24 deletions
File tree
- crates
- base/src/input
- base
- editor
- component/src/input
- shell/src/engine/quickjs
- story/src/stories
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
118 | 150 | | |
119 | 151 | | |
120 | 152 | | |
| |||
341 | 373 | | |
342 | 374 | | |
343 | 375 | | |
| 376 | + | |
344 | 377 | | |
345 | 378 | | |
346 | 379 | | |
| |||
353 | 386 | | |
354 | 387 | | |
355 | 388 | | |
| 389 | + | |
356 | 390 | | |
357 | 391 | | |
358 | 392 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
0 commit comments