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.

Re-exports§

pub use markdown::MarkdownCommitError;
pub use markdown::MarkdownRenderStats;
pub use markdown::MarkdownRenderer;
pub use markdown::MarkdownStreamError;
pub use markdown::StreamingMarkdownPolicy;
pub use markdown::StreamingMarkdownState;
pub use syntax::highlighted_line;

Modules§

diff
markdown
Read-only whole-document and append-stream Markdown rendering.
syntax
Conversion of renderer-neutral syntax spans to Ratatui text.
theme
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
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
ThemeChoice

Enums§

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

Functions§

composite_color
default_diff_keybindings
default_markdown_keybindings
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.