Skip to main content

visible_items

Function visible_items 

Source
pub fn visible_items(
    transcript: &[TranscriptLine],
    mode_for: impl Fn(usize) -> BlockDisplayMode,
) -> Vec<VisibleItem>
Expand description

Build the visual cell sequence for the current display policies.

Long cells retain one head and the final three lines. This preserves the existing renderer’s behavior while keeping grouping and elision outside the terminal draw function.