Changesets · Branches · Tags · Compare
| Changeset | 3dbe838518f23a653834b3105b5fa9900b39f779456b94c2ba5a665fbab6f3f0 |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-08-28 20:18 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-08-28 20:18 -07:00 |
| Parents | b058a03c043d |
1 file changed
modified extensions/cli/src/slashCommands.ts +18 −9
| @@ -18,16 +18,25 @@ | ||
| 18 | 18 | assistant: AssistantConfig, |
| 19 | 19 | ) => Promise<SlashCommandResult> | SlashCommandResult; |
| 20 | 20 | |
| 21 | -async function handleHelp(args: string[], assistant: AssistantConfig) { | |
| 22 | - const allCommands = getAllSlashCommands(assistant); | |
| 21 | +async function handleHelp() { | |
| 23 | 22 | 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 | + "", | |
| 31 | 40 | ].join("\n"); |
| 32 | 41 | posthogService.capture("useSlashCommand", { name: "help" }); |
| 33 | 42 | return { output: helpMessage }; |