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 摘要。