zed
zed copied to clipboard
Add a diff view
Check for existing issues
- [X] Completed
Describe the feature
Add support for showing the diff between different files, similarly to VSCode's code -d/--diff.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
I would love it too. Zed is a great editor. Lately I've been using it as a terminal app (a window with just center terminal views) and it works fantastic too. A proper git support and I can have everything in one application.
Hi! I found a great article to have a feature near to what you want : https://spin.atomicobject.com/fuzzy-find-git-add/
TLDR: use fzf to list changed files and add them to the git HEAD
Try the following command : git ls-files -m -o --exclude-standard | fzf -m --print0 | xargs -0 -o -t git add
Any progress or ETA to start working on this?
While adding a diff viewer, might be nice to add some sort of git quick ui actions somewhere, I love that in vscode I don't have to open up a terminal to push my changes to the remote. Also as many stated, new files and folder highlight would be nice.
While adding a diff viewer, might be nice to add some sort of git quick ui actions somewhere, I love that in vscode I don't have to open up a terminal to push my changes to the remote.
There's a separate feature request for the source control panel #4367
Also as many stated, new files and folder highlight would be nice.
I believe the basic highlighting of committed vs new files and folders is already in the latest Zed build.
It doesnt seem to work with nested git (say I have a root docker composer with 2 folders for services each tracked independently), it will only track newly created files for the top level git.
Nevertheless I just switched from vscode, love what you've been doing and even on a big machine you can feel the responsiveness difference. Awesome job guys !
It doesnt seem to work with nested git (say I have a root docker composer with 2 folders for services each tracked independently), it will only track newly created files for the top level git.
I believe it's tracked in #8275.
Nevertheless I just switched from vscode, love what you've been doing and even on a big machine you can feel the responsiveness difference. Awesome job guys !
💜
Pumping this again. The only thing keeping me from switching is the lack of git diff UI, like in VSCode. Would love to have it.
@Chimpaya to clarify: what do you mean with git diff UI exactly? That you can click on a modified file and see a diff of changes in current branch, or the ability to open any diff/patch and have it properly formatted? (I know that this question sounds like it has an obvious answer, but I do think there's some nuance here)
@Chimpaya to clarify: what do you mean with
git diffUI exactly? That you can click on a modified file and see a diff of changes in current branch, or the ability to open any diff/patch and have it properly formatted? (I know that this question sounds like it has an obvious answer, but I do think there's some nuance here)
I mean a built-in source control panel like they have in VScode.
I mean a built-in source control panel like they have in VScode.
This is a different feature you're describing, which is discussed in #4367.
@mrnugget
[the ability to] click on a modified file and see a diff of changes in current branch
This is what I'm looking for and is probably the only thing keeping me from switching to Zed from VSCode.
@Chimpaya to clarify: what do you mean with
git diffUI exactly? That you can click on a modified file and see a diff of changes in current branch, or the ability to open any diff/patch and have it properly formatted? (I know that this question sounds like it has an obvious answer, but I do think there's some nuance here)
I would also like to be able to compare any two files, or even two unsaved windows/tabs. Sometimes I paste some content into VSCode in two separate tabs and use its diff view to view what's different between them.
I recommend referencing IntelliJ's Git diff, the best I've seen.
Pumping this again. The only thing keeping me from switching is the lack of
git diffUI, like in VSCode. Would love to have it.
I'm currently using this as a workaround: https://github.com/extrawurst/gitui
An alternative to your proposition : https://github.com/bigH/git-fuzzy to combine with delta : https://github.com/dandavison/delta
The Git diff and general integration could be better, I can see that as one of the major reasons people will keep using vscode. I ended up using the official GitHub Desktop app to be able to have an overview of changes made (files edited, files added, files removed). Having some sort of UI for that like vscode does really is a necessity.
I loved how Atom handled the git stuff - commit, amend, push and so on. I just can't get used to how vscode does it.
I would love to see this to resolve conflicts: https://www.jetbrains.com/help/webstorm/resolving-conflicts.html#distributed-version-control-systems
While I definitely support the feature request for a diff function, it will not be sufficient alone to provide a useful version control experience. One would also need branching, staging, committing, pushing, pulling, resolving merge conflicts, history and more.
What I really like about Intellij is its three-way merge panel for resolving conflicts.
Just in case some of you haven't seen it, here's the tracking issue for git integration: https://github.com/zed-industries/zed/issues/8665
Me and the homies waiting for diff view to drop to finally ditch VSCode
I ditched vscode, but It makes me sad to have to open it to get an editable diff view for conflicts.
Zed guys you gotta pick up the pace, zed needs qol's asap.
Zed really needs this feature. Just look at how VS Code handles the diffs.
Diff/merge view/editor would be nice.
While we're at it, could I suggest getting a leg up on all the other editors in this department and making use of semantic diff as implemented by Difftastic for example?
I use it all the time on terminal and it is just incredibly useful!
While we're at it, could I suggest getting a leg up on all the other editors in this department and making use of semantic diff as implemented by Difftastic for example?
Be sure to +👍 this other issue 😉
- #9721
If there was a git diff view this would 100% be my main editor.
Any update on this?
Any update on this?
https://github.com/zed-industries/zed/issues/8665#issuecomment-2159238068