feat: remove session hub and related commands from the application
This commit is contained in:
@@ -4,16 +4,14 @@ use crate::app::mode::ModeKind;
|
||||
pub enum Command {
|
||||
Help,
|
||||
Quit,
|
||||
Resume,
|
||||
LessonCreate(String),
|
||||
LessonExport(String),
|
||||
LessonImport(String),
|
||||
LessonAccept(String),
|
||||
LessonReject(String),
|
||||
LessonList,
|
||||
Mode(ModeKind),
|
||||
Clear,
|
||||
Save,
|
||||
LessonList,
|
||||
Login { provider: String },
|
||||
Unknown(String),
|
||||
}
|
||||
@@ -30,9 +28,7 @@ pub fn parse_command(text: &str) -> Command {
|
||||
match cmd {
|
||||
"/help" => Command::Help,
|
||||
"/quit" => Command::Quit,
|
||||
"/resume" => Command::Resume,
|
||||
"/clear" => Command::Clear,
|
||||
"/save" => Command::Save,
|
||||
"/mode" => {
|
||||
let mode = match arg1 {
|
||||
"chat" | "c" => ModeKind::Chat,
|
||||
|
||||
@@ -72,11 +72,6 @@ pub fn handle_key(key: KeyEvent, state: &mut AppStateRest) -> Vec<Action> {
|
||||
KeyCode::Char('b') if key.modifiers.contains(KeyModifiers::CONTROL) => {
|
||||
vec![Action::OpenOverlay(Overlay::Bash)]
|
||||
}
|
||||
KeyCode::Char('s') if key.modifiers.contains(KeyModifiers::CONTROL)
|
||||
&& !key.modifiers.contains(KeyModifiers::SHIFT) =>
|
||||
{
|
||||
vec![Action::RefreshSessions, Action::OpenOverlay(Overlay::SessionHub)]
|
||||
}
|
||||
KeyCode::Char('S') if key.modifiers.contains(KeyModifiers::CONTROL) => {
|
||||
vec![Action::OpenOverlay(Overlay::Security)]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user