zed/crates/editor/src
Ryan Hawkins a4baba7edd
Add button to copy SHA from Git blame (#14883)
The git blame dialog doesn't give the user a way to quickly copy the SHA
of the associated commit for a line. Adding an option for users to
quickly access this SHA is helpful for user's to do any more git-fu they
might need, such as viewing the full changes themselves within git,
checking the commit out, bisecting off the commit, etc.

This is also very handy for user's of self-hosted git providers.
Determining what provider a self-hosted repository is using could be
quite difficult and this presents an easy option to allow users to look
up more about a commit without having to memorize the short SHA.

Release Notes:

- Added a button to copy the SHA from a Git blame entry.

<img width="1552" alt="A screenshot showing the new copy SHA button
within the Zed editor's inline blame "
src="https://github.com/user-attachments/assets/9365950d-3a3f-4c11-b119-ab02654f5669">

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-07-21 12:02:16 -04:00
..
display_map editor: Implement From instead of Into for converting BlockIds to ElementIds (#14839) 2024-07-19 16:24:12 -04:00
git
scroll repl: Scroll down after running code (#14759) 2024-07-18 11:22:43 -07:00
signature_help
test
actions.rs lsp: Use CompletionTriggerKind::TRIGGER_CHARACTER only for characters allowlisted by the server (#14734) 2024-07-18 14:53:31 +02:00
blame_entry_tooltip.rs Add button to copy SHA from Git blame (#14883) 2024-07-21 12:02:16 -04:00
blink_manager.rs
debounced_delay.rs
display_map.rs Avoid losing focus when block decorations go offscreen (#14815) 2024-07-19 17:04:18 +02:00
editor.rs Use defaults for unchanged TextStyle fields (#14918) 2024-07-21 11:55:45 -04:00
editor_settings.rs
editor_tests.rs Start on adding support for editing via the assistant panel (#14795) 2024-07-19 11:13:15 +02:00
element.rs Avoid losing focus when block decorations go offscreen (#14815) 2024-07-19 17:04:18 +02:00
git.rs
highlight_matching_bracket.rs
hover_links.rs
hover_popover.rs
hunk_diff.rs Avoid losing focus when block decorations go offscreen (#14815) 2024-07-19 17:04:18 +02:00
indent_guides.rs
inlay_hint_cache.rs
inline_completion_provider.rs
items.rs Render other tab icons in the start slot (#14683) 2024-07-17 16:59:41 -04:00
linked_editing_ranges.rs
mouse_context_menu.rs Rework mouse handling of git hunks diff (#14727) 2024-07-19 13:48:04 +03:00
movement.rs
persistence.rs Restore unsaved buffers on restart (#13546) 2024-07-17 18:10:20 +02:00
rust_analyzer_ext.rs Start on adding support for editing via the assistant panel (#14795) 2024-07-19 11:13:15 +02:00
scroll.rs vim: Fix ctrl-d/u going to top bottom (#14620) 2024-07-16 22:56:44 -06:00
selections_collection.rs assistant: Fixed "quote selection" with Vim visual line mode (#14713) 2024-07-18 10:30:01 +02:00
signature_help.rs
tasks.rs
test.rs