zed icon indicating copy to clipboard operation
zed copied to clipboard

Add ```/diff``` to the assistant

Open knyazer opened this issue 5 months ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the feature

A /diff command that would pass git diff (with a configurable number of lines around every diff included too, for example 2) to the assistant.

And maybe a bunch of other git related commands? Something like /git diff|merge|branch. Tho diff seems to be the most useful one.

If applicable, add mockups / screenshots to help present your vision of the feature

This is useful when making tons of small changes around a bunch of files. Passing the /diff to the assistant would let it know about all the changes, thus the assistant could be of help when fixing e.g. merge conflicts; besides, it could be useful to minimize the amount of info passed to the assistant: instead of passing all the tabs, you pass only the relevant changes.

There were some papers about the fact that too much irrelevant context might worsen performance

knyazer avatar Aug 25 '24 09:08 knyazer