CommandCodeAI / CommandCodeAI/command-code

Support slash commands mid-sentence and multiple slash commands per prompt

未關閉
#646 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
沒有語言資料
星號
4k
分支
350
PR 合併指標
30 天內沒有已合併 PR

描述

Feature Description

Please support invoking skills/commands when / is typed anywhere in the prompt composer, not only when the prompt starts with /, and allow multiple slash-command invocations in a single prompt.

Current behavior

In the Command Code desktop app, slash suggestions appear when the slash is at the beginning of the input. If I first write prose and then type /, or include a second / later in the same prompt, the command/skill picker does not appear. This makes it difficult to write natural instructions and compose several skills in one request.

Desired behavior

  • Typing / after existing text opens the same asynchronously loaded slash menu at the caret.
  • Selecting a command inserts or activates it at that position without discarding the surrounding prompt.
  • Each slash occurrence can be resolved independently, so one prompt can contain multiple commands/skills.
  • Keep the current start-of-prompt behavior and keyboard navigation.
  • Preserve ordinary text such as URLs, filesystem paths, and escaped slashes.

Example

Audit this interface with /impeccable, check keyboard access with /accessibility, then browse the docs with /browser.

This would match the inline slash workflow I use in Codex today.

Use Case

Natural-language requests often introduce a skill after the goal is stated. Requiring the user to move every command to the first character breaks the flow of the request, makes multi-step work awkward, and can make skills appear unavailable.

Inline invocation would reduce prompt restructuring, let users compose workflows naturally, and make Command Code a smoother replacement for Codex-style slash skill calls.

Additional Context

Observed on Command Code desktop v0.1.8 on macOS. In a Discord discussion, the Command Code team/community clarified that the current slash menu is surfaced at the start of input and recommended filing a GitHub feature request for mid-prompt skill invocation.

This request covers both related behaviors: (1) invoking a slash command after existing text and (2) using multiple slash commands in one prompt. It is a usability/feature request and does not require changing the existing command catalog.

How important is this to you?

Important for my workflow

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先追蹤桌面端 prompt composer,以及現有的 prompt 開頭 slash-menu 行為。檢查非同步載入的建議、插入游標位置、鍵盤導覽、URLs、paths 和跳脫斜線是如何處理的;完成的標準是 inline 命令和多個命令都能正常運作,不會遺失周圍文字,同時維持現有行為不變。

由索引模型根據 Issue 內容生成。

評估

領域
desktop
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。