Closes https://github.com/zed-industries/zed/issues/12404


Video:
https://github.com/user-attachments/assets/58e62527-da75-4017-a43e-a37803bd7b49
* now shows a context menu on left click instead of expanding the hunk
diff
* hunk diffs can be toggled with a single cmd-click still
* adds a X mark into gutter for every hunk expanded
* makes `editor::ToggleDiffHunk` to work inside the deleted hunk editors
Additionally, changes the way editor context menus behave when the
editor is scrolled — right click and diff hunks context menu now will
stick to the place it was invoked at, instead of staying onscreen at the
same pixel positions.
Release Notes:
- Improved the way git hunks diff can be toggled with mouse
([#12404](https://github.com/zed-industries/zed/issues/12404))
---------
Co-authored-by: Nate Butler <nate@zed.dev>
Co-authored-by: Conrad Irwin <conrad@zed.dev>
18c2e8f6caKirill Bulatov committed on 7/19/2024, 10:48:04 AM· committed by GitHubparentbf4645b