github / github/copilot-cli

Usability feature: Add `shell` (or similar) as a dedicated slash(/) command

未關閉
#3,261 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:tools
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

The CLI includes a special keyword `!` for executing shell commands, but this behavior is not discoverable or self documented. Unlike `/` commands, which are visible through autocomplete, `!` must be remembered by the user.

This creates a usability gap, especially for new or occasional users who may not know that shell execution exists or may forget how to access it.

### Proposed solution

Introduce a discoverable alternative such as a `/shell` command that behaves the same as `!`.

This command should appear in the `/` autocomplete list and clearly indicate that it allows shell execution. It could also include a short description or hint to explain its purpose.

### Example prompts or workflows

User types `/sh` and sees `/shell` in autocomplete
User selects `/shell` and enters shell execution mode, equivalent to using `!`
The CLI optionally shows a short hint such as “Run shell commands, same as `!`”

### Additional context

`/` commands are easy to find and use because they are discoverable through autocomplete. In contrast, the `!` keyword requires memorization, which makes it less accessible.

Adding a `/shell` command would improve discoverability, reduce the need to memorize special syntax, and create a more consistent user experience.

貢獻指南

開啟貢獻指南

研究方向

首先定位現有 shell 關鍵字 `!` 的 CLI 入口點,以及 `/` 命令自動補全的實作。新增一個容易找到的 `/shell` 命令,並提供簡短的 shell 執行提示,同時維持與 `!` 等效的行為;當 `/sh` 會建議該命令且選取它會進入 shell 執行模式時,即表示完成。

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

評估

技術堆疊
shell
領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
55/100

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

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