Usability feature: Add `shell` (or similar) as a dedicated slash(/) command
- 主要语言
- 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