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
16
mod constructors;
mod methods;

use crossterm::event::KeyCode;

/// Configurable keybindings for tree navigation
#[derive(Debug, Clone)]
pub struct TreeKeyBindings {
    pub next: Vec<KeyCode>,
    pub previous: Vec<KeyCode>,
    pub expand: Vec<KeyCode>,
    pub collapse: Vec<KeyCode>,
    pub toggle: Vec<KeyCode>,
    pub goto_top: Vec<KeyCode>,
    pub goto_bottom: Vec<KeyCode>,
}