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.
DiffReviewState
Persistent state for crate::DiffReviewWidget.
DiffReviewWidget
Embeddable stateful diff review widget.
MarkdownRenderOptions
Width and spacing policy for transcript-style Markdown.
MarkdownRenderStats
Deterministic work counters for incremental Markdown rendering.
MarkdownRenderer
Stateless whole-document renderer plus streaming cache services.
MarkdownReviewState
Persistent state for crate::MarkdownReviewWidget.
MarkdownReviewWidget
Stateful Ratatui Markdown review widget.
RatatuiTheme
Ratatui colors derived from a shared DiffTheme. Application colors live in RatatuiUiTheme; only diff-specific colors are kept here.
RatatuiUiTheme
Ratatui adapter for shared semantic component states.
StreamingMarkdownState
Renderer-owned cache for one logical streaming Markdown item.

Enums§

DiffReviewInput
Framework-neutral input accepted by DiffReviewState::handle_input.
DiffReviewStatus
Current host-provided document state.
FocusPane
Which pane receives navigation input.
MarkdownFocusPane
The pane receiving Markdown review navigation.
MarkdownReviewEvent
Events emitted by a Markdown review frontend.
MarkdownReviewInput
Framework-neutral input accepted by MarkdownReviewState::handle_input.
RepositoryOperationStatus
Status of the most recent repository mutation requested by the UI.

Functions§

handle_crossterm_event
Converts one Crossterm event and applies it to state.
handle_markdown_crossterm_event
Converts one Crossterm event and applies it to Markdown review state.
highlighted_line
Converts ordered UTF-8 byte spans into a fully-owned Ratatui line.
render_diff_preview
Renders one file without constructing review state or executing Git.

Type Aliases§

DiffReviewEvent
Review event emitted to the embedding host.