zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.76k stars 2.07k forks source link

Cursor-like Code Edit #9320

Open matmult opened 3 months ago

matmult commented 3 months ago

Check for existing issues

Describe the feature

Zed is really cool and I have been wanting to make the switch to a stabler and faster code editor for a while. However, the only thing that's keeping me from it is the lack of assistant code editing.

It would be great if Zed can implement Cursor's approach here: -> select code block -> enter instruction -> have the assistant go through line by line and make edits -> display the final diff.

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

No response

osiewicz commented 3 months ago

Hey, I think our assistant: inline assist fits the description. Would you mind checking it out? :)

JosephTLyons commented 3 months ago

Is there any part of the process we are missing here @matmult? Loved to learn more about how we can improve this, and if nothing comes to mind, we can probably close this out.

matmult commented 3 months ago

Thanks @osiewicz @JosephTLyons for the quick response! The only QoL feature missing is the diff viewer. Example in cursor:

Screenshot 2024-03-14 at 17 39 07
chrisalbon commented 3 months ago

I agree with @matmult. I actually don't want the AI to write directly in the codebase. I want the AI to make a diff which I can reject, accept, etc.

For example if I have a 30 line class and then I ask the AI to clean it up, I really REALLY want to see what changes the AI made, rather than just have the AI overwrite my own code

haringsrob commented 3 months ago

Yea I too prefer cursor's way of displaying the diff then accept/decline or give additional instructions.