github / github/copilot-cli

Can we deny changes without exiting prompt?

未关闭
#602 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:permissions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the feature or problem you'd like to solve

When I ask copilot to make a lot of changes, sometimes I don't want them all.

### Proposed solution

Hello,

When I ask copilot to do something, like "Please fix all the spelling mistakes in markdown files within this repository", it does a great job. Thanks copilot.

Except sometimes it makes suggestions I don't want. And when that happens, my options are:
```
1. Yes
2. Yes, and approve all file operations for the rest of the running session
3. No, and tell Copilot what to do differently (Esc)
```

When I say "No", I'm sent back to the copilot terminal. And then I have to kind of start over.

Wouldn't it be nice if copilot behaved like `git add -p` where I can say "no" and it moves on to the next change:
```
(1/3) Stage this hunk [y,n,q,a,d,j,J,g,/,e,p,?]? ?
y - stage this hunk
n - do not stage this hunk
q - quit; do not stage this hunk or any of the remaining ones
a - stage this hunk and all later hunks in the file
d - do not stage this hunk or any of the later hunks in the file
j - leave this hunk undecided, see next undecided hunk
J - leave this hunk undecided, see next hunk
g - select a hunk to go to
/ - search for a hunk matching the given regex
e - manually edit the current hunk
p - print the current hunk, 'P' to use the pager
? - print help
```

This is a little much ^ but I think that a "yes, yes all, no, no all" would be amazing.

-Isaac

### Example prompts or workflows

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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