Skip to content

Add missing ctrl-shift-g binding for editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS#51130

Merged
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
zfz7:patch-1
Mar 12, 2026
Merged

Add missing ctrl-shift-g binding for editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS#51130
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
zfz7:patch-1

Conversation

@zfz7
Copy link
Contributor

@zfz7 zfz7 commented Mar 9, 2026

Description:

This PR adds the missing ctrl-shift-g binding for editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS.

Problem

In IntelliJ IDEA, when using multiple cursors:

  • ctrl+g (macOS) adds the next occurrence to the selection
  • ctrl+shift+g (macOS) removes the last added occurrence from the selection

The current Zed JetBrains keymap has ctrl-g for SelectNext but is missing the corresponding ctrl-shift-g for undoing/removing the last selection.

Reference

  • Press Ctrl+G (macOS) to find and select the next occurrence link

  • To remove selection from the last selected occurrence, press Ctrl+Shift+G (macOS) link

This change improves parity with IntelliJ for users transitioning to Zed.

Demo

Screen.Recording.2026-03-09.at.11.53.47.mov

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • JetBrains macOS bindings: added the missing ctrl-shift-g binding for editor::UndoSelection

…IntelliJ behavior)

Description:

This PR adds the missing ctrl-shift-g binding for editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS.

## Problem

In IntelliJ IDEA, when using multiple cursors:
- Ctrl+G (macOS) adds the next occurrence to the selection
- Ctrl+Shift+G (macOS) removes the last added occurrence from the selection

The current Zed JetBrains keymap has `ctrl-g` for SelectNext but is missing the corresponding `ctrl-shift-g` for undoing/removing the last selection.

## Reference

- Press Ctrl+G (macOS) to find and select the next occurrence [link](https://www.jetbrains.com/help/idea/multicursor.html#multiple_words)

- To remove selection from the last selected occurrence, press Ctrl+Shift+G (macOS) [link](https://www.jetbrains.com/help/idea/multicursor.html#multiple_words)


This change improves parity with IntelliJ for users transitioning to Zed.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 9, 2026
@maxdeviant maxdeviant changed the title This PR adds the missing ctrl-shift-g binding for editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS. Add missing ctrl-shift-g binding for editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS Mar 9, 2026
Copy link
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@SomeoneToIgnore SomeoneToIgnore self-assigned this Mar 12, 2026
@SomeoneToIgnore SomeoneToIgnore enabled auto-merge (squash) March 12, 2026 11:14
@SomeoneToIgnore SomeoneToIgnore merged commit 3972104 into zed-industries:main Mar 12, 2026
33 checks passed
tommyming pushed a commit to tommyming/zed that referenced this pull request Mar 13, 2026
…Brains/IntelliJ keymap on macOS (zed-industries#51130)

## Description:

This PR adds the missing `ctrl-shift-g` binding for
editor::UndoSelection to the JetBrains/IntelliJ keymap on macOS.

## Problem

In IntelliJ IDEA, when using multiple cursors:
- ctrl+g (macOS) adds the next occurrence to the selection
- ctrl+shift+g (macOS) removes the last added occurrence from the
selection

The current Zed JetBrains keymap has `ctrl-g` for SelectNext but is
missing the corresponding `ctrl-shift-g` for undoing/removing the last
selection.

## Reference

- Press Ctrl+G (macOS) to find and select the next occurrence
[link](https://www.jetbrains.com/help/idea/multicursor.html#multiple_words)

- To remove selection from the last selected occurrence, press
Ctrl+Shift+G (macOS)
[link](https://www.jetbrains.com/help/idea/multicursor.html#multiple_words)


This change improves parity with IntelliJ for users transitioning to
Zed.


### Demo 

https://github.com/user-attachments/assets/0c7f699f-697d-4b81-a929-53f765d254d8

Closes #ISSUE




Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [X] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- JetBrains macOS bindings: added the missing `ctrl-shift-g` binding for
`editor::UndoSelection`
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.

2 participants