git_ui: Show copy-SHA button on commit header hover#45478
Merged
danilo-leal merged 4 commits intozed-industries:mainfrom Dec 23, 2025
Merged
git_ui: Show copy-SHA button on commit header hover#45478danilo-leal merged 4 commits intozed-industries:mainfrom
danilo-leal merged 4 commits intozed-industries:mainfrom
Conversation
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Contributor
Author
|
Before: 2025-12-21.13.08.59.movAfter: 2025-12-21.13.09.36.mov |
danilo-leal
approved these changes
Dec 23, 2025
Member
There was a problem hiding this comment.
Thank you! Pushed a commit refining the UI a bit: switched to use ButtonLike and visible_on_hover instead of manually tracking hover, removed the "Commit" text because it's pretty obvious this is the commit SHA, capped the commit SHA to an arbitrary width but added it in full in the tooltip, and made the icon change if the SHA's been copied.
Screenshot.2025-12-23.at.1.59.mp4
rtfeldman
pushed a commit
that referenced
this pull request
Jan 5, 2026
Release Notes: - git: Added the ability to copy a commit's SHA in the commit view. --------- Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com> Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Contributor
|
Thank you! And thank you for the preview videos |
LivioGama
pushed a commit
to LivioGama/zed
that referenced
this pull request
Jan 20, 2026
…5478) Release Notes: - git: Added the ability to copy a commit's SHA in the commit view. --------- Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com> Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
LivioGama
pushed a commit
to LivioGama/zed
that referenced
this pull request
Jan 20, 2026
…5478) Release Notes: - git: Added the ability to copy a commit's SHA in the commit view. --------- Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com> Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release Notes: