Skip to content

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

Merged
kubkon merged 1 commit intomainfrom
helix/toggle-selected-diff-hunks
Dec 16, 2025
Merged

helix: Map Zed's specific diff and git-related to goto mode#45006
kubkon merged 1 commit intomainfrom
helix/toggle-selected-diff-hunks

Conversation

@kubkon
Copy link
Member

@kubkon kubkon commented Dec 16, 2025

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

* `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
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 16, 2025
@kubkon kubkon enabled auto-merge (squash) December 16, 2025 16:27
@kubkon kubkon disabled auto-merge December 16, 2025 16:29
@kubkon kubkon enabled auto-merge (squash) December 16, 2025 16:30
@kubkon kubkon merged commit 0466db6 into main Dec 16, 2025
25 checks passed
@kubkon kubkon deleted the helix/toggle-selected-diff-hunks branch December 16, 2025 16:41
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…stries#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
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…stries#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant