Back to Terminal Gui

Namespace Editor Document

docfx/apispec/namespace-editor-document.md

2.4.2607 B
Original Source

The document layer has no dependency on Terminal.Gui and can be used independently for text manipulation, analysis, or testing. It is adapted from AvaloniaEdit's pure-data layers.

Key Types

  • TextDocument - The rope-backed document (efficient insert/delete at any position)
  • DocumentLine - Represents a single line in the document
  • TextAnchor - A position that tracks across edits
  • UndoStack - Undo/redo with compound grouping
  • ITextSource - Read-only text source abstraction
  • TextSegment - Offset+length region in the document