pub struct StepState {Show 13 fields
pub current_step: usize,
pub total_steps: usize,
pub applied_changes: Vec<usize>,
pub active_change: Option<usize>,
pub cursor_change: Option<usize>,
pub animating_hunk: Option<usize>,
pub step_direction: StepDirection,
pub current_hunk: usize,
pub total_hunks: usize,
pub last_nav_was_hunk: bool,
pub hunk_preview_mode: bool,
pub preview_from_backward: bool,
pub show_hunk_extent_while_stepping: bool,
/* private fields */
}Expand description
The current state of stepping through a diff
Fields§
§current_step: usizeCurrent step index (0 = initial state, 1 = after first change applied, etc.)
total_steps: usizeTotal number of steps (number of significant changes + 1 for initial state)
applied_changes: Vec<usize>IDs of changes that have been applied up to current step
active_change: Option<usize>ID of the change being highlighted/animated at current step
cursor_change: Option<usize>Cursor change used for non-stepping navigation (does not imply animation)
animating_hunk: Option<usize>Hunk currently being animated (distinct from cursor position in current_hunk)
step_direction: StepDirectionDirection of the last step action
current_hunk: usizeCurrent hunk index (0-based)
total_hunks: usizeTotal number of hunks
True if the last navigation was a hunk navigation (for extent marker display)
hunk_preview_mode: boolTrue after hunkdown (full preview mode), cleared on first step
preview_from_backward: boolTrue if preview was entered via hunkup (backward navigation)
show_hunk_extent_while_stepping: boolShow hunk extent markers while stepping (set by UI)