CommandCodeAI / CommandCodeAI/command-code
/add-dir should support passing a directory argument directly, and fix pasted paths being modified in the input box
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
Expected Behavior
I expect the /add-dir command to support passing a directory path directly, for example:
/add-dir "/Users/david/Projects/caonima"
When a directory argument is provided, Command Code should add that directory directly, instead of always need to opening the interactive add-dir UI
In addition, in the existing add-dir UI, the input box should accept pasted directory paths as-is, without adding any extra characters before or after the pasted text.
Actual Behavior
Right now, /add-dir does not respect a directory argument.
When I paste a directory path into the add-dir input box, the pasted text gets modified: some extra characters (e.g. something like ~200 or similar) are added to the beginning and the end of the path.
Command Code Version
0.25.7
Operating System
macOS
Terminal/IDE
WarpTerminal
Shell
zsh
Additional context
No response
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 /add-dir 命令入口点和现有的 add-dir 输入 UI 开始。检查命令参数的处理方式,以及粘贴路径的处理方式。完成的标准是:提供的目录会被直接添加,而粘贴的路径在输入框中保持不变。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 50/100