github / github/copilot-cli

Can we deny changes without exiting prompt?

Aberta
#602 0 comentários 0 reações 0 responsáveis Ver no GitHub
area:permissions
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### 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_

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.