Diffing two branches (Similar to jet brains) #55880
erik9631
started this conversation in
Feature Requests
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.
Uh oh!
There was an error while loading. Please reload this page.
-
What are you proposing?
Add a native "Compare with Branch" feature. This would allow users to select another branch and view side-by-side (or inline) comparisons of files directly within Zed.
Why does this matter?
Currently, Zed lacks a full-window GUI diff viewer. To compare current work against another branch, users are forced to use the terminal, terminal UIs like
lazygit, or completely separate external GUI diff tools.Building this natively solves the context-switching problem. It makes reviewing cross-branch changes, doing self-code-reviews, and understanding project history seamless without ever leaving the editor.
Are there any examples or context?
code --diff fileA fileB, which opens a native diff tab.Possible approach
Git: Compare with Branchcommand that opens a branch picker. Selecting a branch opens a list of changed files, which launch into a side-by-side read-only diff tab when clicked.zed --diff <path1> <path2>command. Even before a full branch-comparison GUI is built, this would allow users ofgit difftoolorlazygitto route their diff views directly into Zed's UI.Beta Was this translation helpful? Give feedback.
All reactions