Module editor

Module editor 

Source
Expand description

A standalone editor component for GPUI

This crate provides a text editor widget for GPUI applications with syntax highlighting support.

§Architecture

The editor is structured in three layers:

  • Editor: The core data model and editing operations
  • EditorElement: The GPUI element that renders an Editor
  • EditorView: A complete view with keyboard handling (see examples)

Re-exports§

pub use buffer::GapBuffer;
pub use buffer::TextBuffer;
pub use editor::CursorPosition;
pub use editor::Editor;
pub use editor::EditorConfig;
pub use element::EditorElement;
pub use crate::keymap::extensions::bind;
pub use crate::keymap::extensions::create_bindings;
pub use crate::keymap::extensions::BindingBuilder;
pub use crate::keymap::BindingSpec;
pub use crate::keymap::Keymap;
pub use crate::keymap::KeymapCollection;
pub use syntax_highlighter::SyntaxHighlighter;
pub use gpui;

Modules§

buffer
Gap buffer implementation for efficient text editing.
editor
element
GPUI Element implementation for rendering an Editor
syntax_highlighter

Structs§

MetaLine
Selection

Enums§

Language