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§
- Diff
Preview Options - Controls compact preview layout and truncation.
- Diff
Review State - Persistent state for
crate::DiffReviewWidget. - Diff
Review Widget - Embeddable stateful diff review widget.
- Markdown
Render Options - Width and spacing policy for transcript-style Markdown.
- Markdown
Render Stats - Deterministic work counters for incremental Markdown rendering.
- Markdown
Renderer - Stateless whole-document renderer plus streaming cache services.
- Markdown
Review State - Persistent state for
crate::MarkdownReviewWidget. - Markdown
Review Widget - Stateful Ratatui Markdown review widget.
- Ratatui
Theme - Ratatui colors derived from a shared
DiffTheme. Application colors live inRatatuiUiTheme; only diff-specific colors are kept here. - Ratatui
UiTheme - Ratatui adapter for shared semantic component states.
- Streaming
Markdown State - Renderer-owned cache for one logical streaming Markdown item.
Enums§
- Diff
Review Input - Framework-neutral input accepted by
DiffReviewState::handle_input. - Diff
Review Status - Current host-provided document state.
- Focus
Pane - Which pane receives navigation input.
- Markdown
Focus Pane - The pane receiving Markdown review navigation.
- Markdown
Review Event - Events emitted by a Markdown review frontend.
- Markdown
Review Input - Framework-neutral input accepted by
MarkdownReviewState::handle_input. - Repository
Operation Status - 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§
- Diff
Review Event - Review event emitted to the embedding host.