36 lines
948 B
Rust
36 lines
948 B
Rust
use crate::app::runtime::actions::Action;
|
|
use crate::app::state::types::Overlay;
|
|
|
|
pub const HELP_TEXT: &str = "\
|
|
Keybindings:
|
|
Ctrl+C Quit
|
|
Ctrl+D Close overlay
|
|
Ctrl+H Help
|
|
Ctrl+P Settings
|
|
Ctrl+A Toggle yolo arm
|
|
Ctrl+B Bash panel
|
|
Ctrl+T Todo panel
|
|
Ctrl+W Workflow panel
|
|
Ctrl+K Key input
|
|
Ctrl+L Learning dashboard
|
|
Ctrl+U Usage dashboard
|
|
Esc Close overlay
|
|
Enter Submit / confirm
|
|
|
|
Slash commands:
|
|
/help Show this help
|
|
/quit Quit session
|
|
/mode <name> Switch mode (chat, bash, workflow)
|
|
/lesson <text> Create a lesson
|
|
/lesson list List lessons
|
|
/lesson export Export lessons
|
|
/lesson import Import lessons
|
|
/clear Clear transcript";
|
|
|
|
pub fn handle_help_action(action: &Action) -> Action {
|
|
match action {
|
|
Action::CloseOverlay => Action::CloseOverlay,
|
|
_ => Action::OpenOverlay(Overlay::Help),
|
|
}
|
|
}
|