jjj 0.2.0

A modal interface for Jujutsu.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ratatui::{prelude::*, widgets::Paragraph};

/// Renders dim tildes to the given area to indicate that the buffer is empty.
pub struct EmptyBuffer;

impl Widget for EmptyBuffer {
    fn render(self, area: Rect, buf: &mut Buffer) {
        Paragraph::new(
            (0..area.height)
                .map(|_| Line::from("  ~".dim()))
                .collect::<Vec<Line>>(),
        )
        .render(area, buf);
    }
}