gpui-component/crates/ui/src/text
Jason Lee a9953a9349
input: Use zed's Rope (#1214)
Now with 10K lines plain text, in release mode on macOS. The
`large-text` example can work with:

- 120 FPS for display.
- 90 FPS for update text.

```
MTL_HUD_ENABLED=1 cargo run --example large-text --release
```

- Fixed the cursor position at end of line, also support at start of
line.


https://github.com/user-attachments/assets/1de52f6c-e138-4ed3-a600-06372a807ed8

### Check list

- [x] Modifying Text with Rope
- [x] LineColumn, GoToLine
- [x] Code Highlight
- [x] Delete word, select word
- [x] Delete line
- [x] Move left, right, up, down
2025-09-08 16:44:52 +08:00
..
format markdown: Add to support LinkReference and Footnote. (#1201) 2025-09-03 16:39:17 +08:00
inline.rs text_view: Add to support selection. (#1169) 2025-08-28 18:09:30 +08:00
mod.rs text_view: Add to support selection. (#1169) 2025-08-28 18:09:30 +08:00
node.rs input: Use zed's Rope (#1214) 2025-09-08 16:44:52 +08:00
text_view.rs markdown: Add to support LinkReference and Footnote. (#1201) 2025-09-03 16:39:17 +08:00
utils.rs text_view: Add to support selection. (#1169) 2025-08-28 18:09:30 +08:00