ZIm/crates/collab_ui/src
Thorsten Ball faebce8cd0
Inline git blame (#10398)
This adds so-called "inline git blame" to the editor that, when turned
on, shows `git blame` information about the current line inline:


![screenshot-2024-04-15-11 29
35@2x](https://github.com/zed-industries/zed/assets/1185253/21cef7be-3283-4556-a9f0-cc349c4e1d75)


When the inline information is hovered, a new tooltip appears that
contains more information on the current commit:


![screenshot-2024-04-15-11 28
24@2x](https://github.com/zed-industries/zed/assets/1185253/ee128460-f6a2-48c2-a70d-e03ff90a737f)

The commit message in this tooltip is rendered as Markdown, is
scrollable and clickable.

The tooltip is now also the tooltip used in the gutter:

![screenshot-2024-04-15-11 28
51@2x](https://github.com/zed-industries/zed/assets/1185253/42be3d63-91d0-4936-8183-570e024beabe)


## Settings

1. The inline git blame information can be turned on and off via
settings:
```json
{
  "git": {
    "inline_blame": {
      "enabled": true
    }
  }
}
```
2. Optionally, a delay can be configured. When a delay is set, the
inline blame information will only show up `x milliseconds` after a
cursor movement:
```json
{
  "git": {
    "inline_blame": {
      "enabled": true,
      "delay_ms": 600
    }
  }
}
```
3. It can also be turned on/off for the current buffer with `editor:
toggle git blame inline`.

## To be done in follow-up PRs

- [ ] Add link to pull request in tooltip
- [ ] Add avatars of users if possible

## Release notes

Release Notes:

- Added inline `git blame` information the editor. It can be turned on
in the settings with `{"git": { "inline_blame": "on" } }` for every
buffer or, temporarily for the current buffer, with `editor: toggle git
blame inline`.
2024-04-15 14:21:52 +02:00
..
chat_panel Inline git blame (#10398) 2024-04-15 14:21:52 +02:00
collab_panel WIP: remoting (#10085) 2024-04-11 15:36:35 -06:00
notifications collab ui: Dismiss project shared notifications when leaving room (#10160) 2024-04-04 13:43:14 +02:00
channel_view.rs Add preview tabs (#9125) 2024-04-11 23:09:12 +02:00
chat_panel.rs chat panel: Add timestamp in tooltip to edited message (#10444) 2024-04-12 14:26:41 +02:00
collab_panel.rs WIP: remoting (#10085) 2024-04-11 15:36:35 -06:00
collab_titlebar_item.rs Add support for applying theme after extension is installed (#9529) 2024-03-20 11:13:58 -04:00
collab_ui.rs gpui: Add support for window transparency & blur on macOS (#9610) 2024-03-29 11:10:47 -04:00
face_pile.rs Fix flickering (#9012) 2024-03-11 10:45:57 +01:00
notification_panel.rs Refactor workspace notifications to use explicit NotificationId type (#10342) 2024-04-10 17:21:23 -04:00
notifications.rs Add stories for collab notifications (#3967) 2024-01-08 21:54:59 -05:00
panel_settings.rs Add the ability for extensions to provide language settings (#10296) 2024-04-08 19:17:12 -04:00