Skip to content

Commit 2a7b255

Browse files
ux: show available options in /project command
When /project is called without arguments, the inline keyboard now includes a summary of available subcommands (info, add, search, rename, remove) above the project list. Users no longer need to check /help to discover project management options. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6c4adf1 commit 2a7b255

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

internal/bot/commands.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,14 @@ func (b *Bot) cmdProject(args string) {
446446
}
447447

448448
keyboard := tgbotapi.NewInlineKeyboardMarkup(rows...)
449-
text := fmt.Sprintf("📂 *Projects* (%d)\n\nActive: *%s*\nTap to switch:", len(projects), active)
449+
text := fmt.Sprintf("📂 *Projects* (%d) — Active: *%s*\n\n"+
450+
"Tap to switch, or use:\n"+
451+
"`/project info` — details & usage\n"+
452+
"`/project add <name> <path>`\n"+
453+
"`/project search <keyword>`\n"+
454+
"`/project rename <old> <new>`\n"+
455+
"`/project remove <name>`",
456+
len(projects), active)
450457
msg := tgbotapi.NewMessage(b.cfg.TelegramChatID, text)
451458
msg.ParseMode = "Markdown"
452459
msg.ReplyMarkup = keyboard

0 commit comments

Comments
 (0)