gpuikit-editor

Crates.iogpuikit-editor
lib.rsgpuikit-editor
version0.1.0
created_at2025-11-15 03:21:56.142511+00
updated_at2025-11-15 03:21:56.142511+00
descriptionA standalone editor component for GPUI
homepage
repositoryhttps://github.com/iamnbutler/gpui-editor/
max_upload_size
id1933968
size292,497
Nate Butler (iamnbutler)

documentation

README

gpuikit-editor

🚧 This crate is a work in progress – it is currently in a prototype state 🚧

A open editor component for gpui – aspires to a Monaco-equivalent for gpui

Game plan

Building a standalone editor component is probably like trying to boil the ocean... so I'll be trying to break it down into some smaller steps.

  1. Just make it work for the simplest possible usecase, with the simplest possible approach (GapBuffer-based.)
  2. Split up the pieces that should be generic/shared with other components - likely split up into smaller crates to power this and gpui-kit. Think theme, utils, highlight, etc.
  3. Start using in anger, leveling up testing, using in other projects, etc.
  4. Syntax highligting???? LSP???, ???
  5. Level up the editing approach - Likely some mix of the current approach and ropes, sumtree.

There are probably 800 missing steps in there, we'll just have to figure it out on the way.

Note: It's likely this crate becomes gpui-kit-editor in the future.

Try it:

  • Navigation: Arrow keys for cursor movement
  • Editing: Type to insert, Backspace/Delete to remove text
  • Themes: Cmd+T / Cmd+Shift+T to cycle through themes
  • Languages: Cmd+L / Cmd+Shift+L to cycle through language samples

License

Licensed under either of:

at your option.

Contribution

By submitting a contribution to this repository, you agree to license it under both Apache-2.0 and MIT as described above.

Third-party licenses

Commit count: 0

cargo fmt