github / github/copilot-cli

Using tab during file autocomplete adds space

已关闭 适合新手
#2,429 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area:input-keyboard
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

Using tab during file autocomplete via '@' adds the selected file/folder along with a space at the end. The space at the end causes to exit out of the autocomplete view, making the user to backspace to continue autocomplete. This makes tab and enter virtually the same, which is not ideal.

### Affected version

1.0.14

### Steps to reproduce the behavior

1. start copilot
2. enter @
3. select a folder
4. hit tab

### Expected behavior

tab should enter the selected folder, without the space at the end. should not exit out of autocomplete view

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

Start by reproducing the issue in Copilot CLI using the listed steps: enter @, select a folder, and press Tab. Read the file-autocomplete handling and verify how Tab inserts the selected path. Done means Tab enters the selected folder without a trailing space and keeps autocomplete open, while Enter retains its separate behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。