Skip to main content

Crate clankerdiff_ratatui

Crate clankerdiff_ratatui 

Source
Expand description

An embeddable, repository-agnostic Ratatui diff review widget. Hosts provide clankerdiff_core::DiffDocument snapshots and route emitted clankerdiff_core::DiffReviewEvent values. This crate never executes Git.

Modules§

ui
Renderer-native components backed by shared semantic design roles.

Structs§

DiffPreviewOptions
Controls compact preview layout and truncation.
DiffPreviewState
DiffPreviewStats
DiffReviewState
Persistent state for crate::DiffReviewWidget.
DiffReviewWidget
Embeddable stateful diff review widget.
KeyBinding
KeyEvent
KeyModifiers
MarkdownDocument
A parsed Markdown document.
MarkdownLayout
MarkdownLayoutOptions
MarkdownRenderStats
Deterministic work counters for incremental Markdown rendering.
MarkdownRenderer
Stateless whole-document renderer plus streaming cache services.
MarkdownReview
MarkdownReviewBuilder
MarkdownReviewState
Persistent state for crate::MarkdownReviewWidget.
MarkdownReviewWidget
Stateful Ratatui Markdown review widget.
MarkdownRow
MarkdownRowUpdate
MarkdownRows
MouseEvent
RatatuiTheme
Ratatui colors derived from a shared ReviewTheme. Application colors live in RatatuiUiTheme; only diff-specific colors are kept here.
RatatuiUiTheme
Ratatui adapter for shared semantic component states.
ReviewCapabilities
ReviewOptions
ReviewTheme
StreamingMarkdownState
Renderer-owned cache for one logical streaming Markdown item.
ThemeChoice

Enums§

BindingScope
DiffReviewCommand
DiffReviewStatus
Current host-provided document state.
FocusPane
InputOutcome
InteractionPhase
Key
KeyCode
MarkdownCommitError
MarkdownFocusPane
MarkdownPresentation
MarkdownReviewCommand
MarkdownReviewError
Errors raised while producing a submission.
MarkdownReviewEvent
Events emitted by a Markdown review frontend.
MarkdownStreamError
MouseButton
MouseEventKind
NavigationPane
RepositoryOperationStatus
Status of the most recent repository mutation requested by the UI.
ReviewCommand
ReviewInput
StreamingMarkdownPolicy

Functions§

composite_color
default_diff_keybindings
default_markdown_keybindings
highlighted_line
Converts ordered UTF-8 byte spans into a fully-owned Ratatui line.
layered_style
page_color
render_diff_preview
Renders one file without constructing review state or executing Git.

Type Aliases§

DiffReviewEvent
Review event emitted to the embedding host.