ratkit 0.2.16

A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Minimal Vim navigation state shared by document viewers.

/// Tracks multi-key Vim navigation prefixes.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct VimState {
    /// Whether a `g` prefix is waiting for a second key.
    pub pending_g: bool,
}

impl VimState {
    /// Clears pending Vim prefixes.
    pub fn clear(&mut self) {
        self.pending_g = false;
    }
}