Elffuss BraidHub

kikocis/continue public

fix: improved /help slash command
Changeset3dbe838518f23a653834b3105b5fa9900b39f779456b94c2ba5a665fbab6f3f0
AuthorNate <sestinj@gmail.com> · 2025-08-28 20:18 -07:00
CommitterNate <sestinj@gmail.com> · 2025-08-28 20:18 -07:00
Parentsb058a03c043d

Browse the files at this changeset

1 file changed

modified extensions/cli/src/slashCommands.ts +18 −9
@@ -18,16 +18,25 @@
1818 assistant: AssistantConfig,
1919 ) => Promise<SlashCommandResult> | SlashCommandResult;
2020
21-async function handleHelp(args: string[], assistant: AssistantConfig) {
22- const allCommands = getAllSlashCommands(assistant);
21+async function handleHelp() {
2322 const helpMessage = [
24- "Slash commands:",
25- ...allCommands
26- .sort((a, b) => a.name.localeCompare(b.name))
27- .map(
28- (cmd) =>
29- `- ${chalk.white(`/${cmd.name}:`)} ${chalk.gray(cmd.description)}`,
30- ),
23+ chalk.bold("Keyboard Shortcuts:"),
24+ "",
25+ chalk.white("Navigation:"),
26+ ` ${chalk.cyan("↑/↓")} Navigate previous messages`,
27+ ` ${chalk.cyan("Enter")} Submit message`,
28+ ` ${chalk.cyan("\\+Enter")} New line`,
29+ "",
30+ chalk.white("Controls:"),
31+ ` ${chalk.cyan("Ctrl+C")} Clear input`,
32+ ` ${chalk.cyan("Ctrl+D")} Exit application`,
33+ ` ${chalk.cyan("Shift+Tab")} Cycle modes`,
34+ ` ${chalk.cyan("Esc")} Interrupt`,
35+ "",
36+ chalk.white("Special Characters:"),
37+ ` ${chalk.cyan("@")} Attach files`,
38+ ` ${chalk.cyan("/")} Slash commands`,
39+ "",
3140 ].join("\n");
3241 posthogService.capture("useSlashCommand", { name: "help" });
3342 return { output: helpMessage };