Skip to main content

Module help

Module help 

Source
Expand description

Help view component.

This module provides a help view for displaying key bindings in TUI applications.

§Example

use bubbles::help::Help;
use bubbles::key::Binding;

let help = Help::new();

// Create some bindings
let quit = Binding::new().keys(&["q", "ctrl+c"]).help("q", "quit");
let save = Binding::new().keys(&["ctrl+s"]).help("ctrl+s", "save");

// Render short help
let view = help.short_help_view(&[&quit, &save]);

Structs§

Help
Help view model.
SetBindingsMsg
Message to set key bindings for the help view.
SetWidthMsg
Message to set the width of the help view.
Styles
Styles for the help view.
ToggleFullHelpMsg
Message to toggle full help display.

Traits§

KeyMap
Trait for types that can provide key bindings for help display.