github / github/copilot-cli

Using `/cd DirName` doesn't work but `/cd DirName/` does.

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

描述

### Describe the bug

I was trying to change directories after GHCP made a new repo for me. However, it wouldn't let me. I was so confused. It was showing the repo I wanted in autocomplete. I would accept it, and then it would say the directory doesn't exist. I eventually realized it was the missing trailing `/`. Please make it smart enough to know the directory you want without that. Also fix the autocomplete so it completes to the correct ending.

### Affected version

0.0.394 Commit: 3d79feb

### Steps to reproduce the behavior

1. Be in a directory (maybe have GHCP make a new subdirectory there for you)
2. type `/cd` and start typing the name of a subdirectory
3. See the autocomplete option and select it.
4. Hit enter and GHCP says the directory doesn't exist.
5. Add a `/` to the end and see that suddenly it _does_ exist.

### Expected behavior

_No response_

### Additional context

Note this was on Windows 11 in PowerShell 7

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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