Smoother Diff Resolution: Auto-jump to diffs & Auto-save after co/ct #2892
ChuBL
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve been using Avante heavily, but I kept running into a few specific friction points that broke my flow during the "Edit -> Review -> Apply" loop:
co/ct) and then hit:wbefore the AI can see the new context.After several hours of battling with Copilot, we finally managed to hack together a solution that automates this logic. It makes the review process feel much snappier.
What this script does:
G) whenever entering the Avante sidebar.]x(next conflict) immediately after generation finishes.co(Choose Ours) andct(Choose Theirs) keymaps to automatically trigger:w(silent write) immediately after accepting a change.The Code:
Note: This monkey-patches
avante.llm_tools.replace_in_file, so be aware that internal API changes in future Avante updates might affect it.My
behaviourconfig:My solution (add this to the end of
avante.lua):Beta Was this translation helpful? Give feedback.
All reactions