sheetsui/src/ui/help/mod.rs
Jeremy Wall b011a4d5bf
UX: Replace the tui_markdown widget
This allows us to have better styling for the help text as well providing some hooks for help navigation later.
2025-04-07 21:58:47 -04:00

12 lines
515 B
Rust

use crate::ui::render::markdown::Markdown;
pub fn to_widget(topic: &str) -> Markdown {
match topic {
"navigate" => Markdown::from_str(include_str!("../../../docs/navigation.md")),
"edit" => Markdown::from_str(include_str!("../../../docs/edit.md")),
"command" => Markdown::from_str(include_str!("../../../docs/command.md")),
"visual" => Markdown::from_str(include_str!("../../../docs/visual.md")),
_ => Markdown::from_str(include_str!("../../../docs/intro.md")),
}
}