-
Notifications
You must be signed in to change notification settings - Fork 3.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
Add a diff view #4523
Comments
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! TLDR: use fzf to list changed files and add them to the git HEAD Try the following command : |
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. |
There's a separate feature request for the source control panel #4367
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 ! |
I believe it's tracked in #8275.
💜 |
Pumping this again. The only thing keeping me from switching is the lack of |
@Chimpaya to clarify: what do you mean with |
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. |
This is what I'm looking for and is probably the only thing keeping me from switching to Zed from VSCode. |
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. |
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). |
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: #8665 |
I am currently using lazygit. ![]() |
Part of #4523 Added two new actions with the default keybindings ``` "cmd-'": "editor::ToggleHunkDiff", "cmd-\"": "editor::ExpandAllHunkDiffs", ``` that allow to browse git hunk diffs in Zed: https://github.com/zed-industries/zed/assets/2690773/9a8a7d10-ed06-4960-b4ee-fe28fc5c4768 The hunks are dynamic and alter on user folds and modifications, or toggle hidden, if the modifications were not adjacent to the expanded hunk. Release Notes: - Added `editor::ToggleHunkDiff` (`cmd-'`) and `editor::ExpandAllHunkDiffs` (`cmd-"`) actions to browse git hunk diffs in Zed
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! |
Be sure to +👍 this other issue 😉 |
If there was a git diff view this would 100% be my main editor. |
Any update on this? |
|
Would be nice to see a plan for this, or at least a plan to plan/discuss it. In terms of capacity it is not fair to keep comparing on "how vsCode does it", as it is backed up by a major company. But on the other hand it should be feasible to plan this, or present a roadmap to have this integrated/decided/discussed =) Congrats by the super IDE and I hope it supports plugins in the future + view diff. On its core, being written in Rust, it will be for sure much superior to its competitors in terms of memory efficiency and performance =) |
@alioshr The message right above yours links to something of a plan, no? This comment is the latest update to the tracking issue for git integration #8665 which also lays out plans/milestones. If, however, you're saying more of a BDUF, my perception as an outsider is that this project is not run that way. There are general objectives and goals and those typically seem to be tackled via initial experiments / pocs that are iterated upon and adjusted based upon feedback and learnings along the way. Also my experience that once they move on a specific feature it tends to move along rather quickly, gets to an mvp delivering most of the value, let the feedback flow for awhile, and perhaps shift for awhile to other higher priorities. Rinse and repeat. |
@baldwindavid oh great. Yeah it seems to be exactly the minimum of feedback I was expecting to find. I did not click on the link to be honest. Quite fresh from last week. Great news and thanks for explaining what the link is. The alias of the link is not very intuitive =) |
Please!!! |
we are waiting.... pleaaase |
Hello I am here, asking very nicely to the very smart and beautiful devs to please add diff view. |
Hey folks! Since 26+ people are getting notified every time someone says that they'd love to have this feature and we have (right now) 801 upvote-emojis — I'm going to lock the issue for now. We know it's requested :) |
Check for existing issues
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
The text was updated successfully, but these errors were encountered: