| 133 | } |
| 134 | |
| 135 | fn register_all(&mut self) { |
| 136 | self.register(SlashCommand { |
| 137 | name: "/new".to_string(), |
| 138 | aliases: vec!["/clear".to_string()], |
| 139 | title: "New Session".to_string(), |
| 140 | description: "Start a new conversation".to_string(), |
| 141 | category: CommandCategory::Session, |
| 142 | keybind: Some("ctrl_n".to_string()), |
| 143 | suggested: true, |
| 144 | action: CommandAction::NewSession, |
| 145 | }); |
| 146 | |
| 147 | self.register(SlashCommand { |
| 148 | name: "/sessions".to_string(), |
| 149 | aliases: vec!["/resume".to_string(), "/continue".to_string()], |
| 150 | title: "Switch Session".to_string(), |
| 151 | description: "Switch to another session".to_string(), |
| 152 | category: CommandCategory::Session, |
| 153 | keybind: Some("ctrl_s".to_string()), |
| 154 | suggested: true, |
| 155 | action: CommandAction::OpenSessionList, |
| 156 | }); |
| 157 | |
| 158 | self.register(SlashCommand { |
| 159 | name: "/share".to_string(), |
| 160 | aliases: vec![], |
| 161 | title: "Share Session".to_string(), |
| 162 | description: "Generate a shareable link".to_string(), |
| 163 | category: CommandCategory::Session, |
| 164 | keybind: None, |
| 165 | suggested: false, |
| 166 | action: CommandAction::ShareSession, |
| 167 | }); |
| 168 | |
| 169 | self.register(SlashCommand { |
| 170 | name: "/unshare".to_string(), |
| 171 | aliases: vec![], |
| 172 | title: "Unshare Session".to_string(), |
| 173 | description: "Revoke sharing link".to_string(), |
| 174 | category: CommandCategory::Session, |
| 175 | keybind: None, |
| 176 | suggested: false, |
| 177 | action: CommandAction::UnshareSession, |
| 178 | }); |
| 179 | |
| 180 | self.register(SlashCommand { |
| 181 | name: "/rename".to_string(), |
| 182 | aliases: vec![], |
| 183 | title: "Rename Session".to_string(), |
| 184 | description: "Rename current session".to_string(), |
| 185 | category: CommandCategory::Session, |
| 186 | keybind: None, |
| 187 | suggested: false, |
| 188 | action: CommandAction::RenameSession, |
| 189 | }); |
| 190 | |
| 191 | self.register(SlashCommand { |
| 192 | name: "/fork".to_string(), |