# helix: Map Zed's specific diff and git-related to goto mode \(\#45006\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0466db66cde85d79c8b3ec4bbe418bc68130f5c2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0466db66cde85d79c8b3ec4bbe418bc68130f5c2

Requested commit: 0466db66cde85d79c8b3ec4bbe418bc68130f5c2

Commit: 0466db66cde85d79c8b3ec4bbe418bc68130f5c2

Tree: 7c1faab4eb6521eb1497c04a56e06cf6c25958ee

Author: Jakub Konka

Committer: GitHub

## Message

```
helix: Map Zed's specific diff and git-related to goto mode (#45006)

Until now, Helix-mode users would have to rely on Vim's `d *` behaviour
which cannot be reliably replicated with Helix's default delete
behaviour and so I believe that remapping this functionality to Helix's
goto mode is a better fit.

Release Notes:

- Added custom mappings for Zed specific diff and git-related actions to
Helix's goto mode:
  * `g o` - toggle selected diff hunks
  * `g O` - toggle staged
  * `g R` - restore change
  * `g u` - stage and goto next diff hunk
  * `g U` - unstage and goto next diff hunk
```

## Parents

- [420254cff1498bc141f89edca345b3603d535984](https://git.cafe/gitcafe/zed/commit/420254cff1498bc141f89edca345b3603d535984?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0466db66cde85d79c8b3ec4bbe418bc68130f5c2?format=markdown)
