-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: /rageedit to edit last diff in rage #96
Comments
this command could also invoke |
Thanks for trying aider and reporting this issue. I'm not exactly sure I understand your request. But I just added a FAQ entry that you might find helpful: |
It's not that example I'm thinking of. I haven't seen gpt not being able to edit files (but I'm using 3.5 which seems to not have that problem). I'm thinking of when the diff contains unneeded changes that I want to remove. I have 3 choices:
This is mostly a convenience as small edits like that is quite common. |
Ah I see. In my experience coding with GPT, in this situation I would simply make an edit in my editor to fix/improve the code, commit that and move on (kind of like your option 2). That fixes the code, but doesn't worry about the fact that there's a commit in the history which wasn't perfect. I'm not sure it's in scope for aider to strive for a perfect commit history. Coding with GPT is very much a collaborative and iterative process. Aider relies on git for safety so that you can always undo something that GPT does. If you want to tidy up the commit history, you probably need to use git on the command line to rebase or Here's some info on how aider uses git that might be relevant: |
I just asked aider to add an in-chat /git command so you can run git commands without having to leave the chat. It's not the automagic functionality you were describing, but it might simplify the workflow you're looking for. |
My practice is to do a rebase periodically to keep the git history in order. I'm still on the fence personally about how I feel about the large diffs that gpt-4 puts in the git history. I like the idea of keeping as few opinions as possible in aider itself and letting folks do things the way they want. |
@paul-gauthier the |
I'm going to close this issue for now, but feel free to re-open or file a new issue any time. |
Sometimes gpt stubbornly will not understand what you say and do too much.
In this case, a "rage edit" command is appropriate to invoke to edit the diff in rage.
The text was updated successfully, but these errors were encountered: