Skip to content

keymaps: Add Ctrl+R open recent binding for macOS and Linux#52893

Merged
ConradIrwin merged 1 commit intozed-industries:mainfrom
davidalecrim1:vscode-open-recent
Apr 6, 2026
Merged

keymaps: Add Ctrl+R open recent binding for macOS and Linux#52893
ConradIrwin merged 1 commit intozed-industries:mainfrom
davidalecrim1:vscode-open-recent

Conversation

@davidalecrim1
Copy link
Copy Markdown
Contributor

@davidalecrim1 davidalecrim1 commented Apr 1, 2026

Closes #52879

Summary

VS Code binds Ctrl+R to open recent workspaces/folders on all platforms (Windows, macOS, and Linux). Zed already had this binding in default-windows.json, but it was missing from default-macos.json and default-linux.json.

Since BaseKeymap::VSCode returns no supplemental keymap file and relies entirely on the platform default keymaps, users who selected VS Code keybindings on macOS or Linux would not get the expected Ctrl+R behavior — instead getting nothing, or having to use the non-VSCode binding (Alt+Cmd+O / Alt+Ctrl+O).

This adds the missing binding to both platform defaults, consistent with what Windows already had.

Screenshot

The default keybinding in VS Code:
Screenshot 2026-04-01 at 07 38 09

Release Notes:

  • Added Ctrl+R keybinding for opening recent projects on macOS and Linux, matching VS Code's default behavior on all platforms.

VSCode binds Ctrl+R to open recent workspaces on all platforms. Zed
already had this binding in default-windows.json but it was missing from
default-macos.json and default-linux.json, meaning users who selected
VS Code keybindings on those platforms would not get the expected behavior.

Fixes zed-industries#52879
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 1, 2026
@davidalecrim1 davidalecrim1 marked this pull request as ready for review April 1, 2026 10:39
@zed-codeowner-coordinator zed-codeowner-coordinator Bot requested review from a team, ConradIrwin and osiewicz and removed request for a team April 1, 2026 10:39
@ConradIrwin
Copy link
Copy Markdown
Member

@davidalecrim1 I think we should leave those comments in place; but this seems reasonable.

ctrl-r is apparently also refresh in the diagnostics pane, though that seems "fine" to conflict for now. (For some reason cmd-r is collaboration, which makes a bit less sense).

@davidalecrim1
Copy link
Copy Markdown
Contributor Author

Which comments are you referring to @ConradIrwin ?

I agree the conflict is fine since the goal is to keep the muscle memory from someone coming from VS Code and later on they can change this as desired.

@ConradIrwin
Copy link
Copy Markdown
Member

Screenshot 2026-04-06 at 10 50 10 AM

Sorry, I was confused by this Github UI into thinking you'd deleted the comments that are highlighted in red in the diff view..

@ConradIrwin ConradIrwin merged commit a92b242 into zed-industries:main Apr 6, 2026
35 checks passed
@dinocosta
Copy link
Copy Markdown
Member

dinocosta commented Apr 7, 2026

Hey folks 👋

Seems like these changes break the ability to use ctrl-r while in the terminal in order to activate history search in certain shells, for example, zsh and bash. I've opened a Pull Request that tightens the context for these new bindings, #53301 , feel free to take a look ! 🙂

@zed-zippy zed-zippy Bot added the PR state:needs review Used to label PRs that are in need of a post-merge approval label Apr 7, 2026
@ConradIrwin
Copy link
Copy Markdown
Member

@zed-zippy approved (with the follow up PR from Dino!)

@MrSubidubi MrSubidubi removed the PR state:needs review Used to label PRs that are in need of a post-merge approval label Apr 7, 2026
piper-of-dawn pushed a commit to piper-of-dawn/zed that referenced this pull request Apr 25, 2026
…stries#52893)

Closes zed-industries#52879

## Summary

VS Code binds `Ctrl+R` to open recent workspaces/folders on all
platforms (Windows, macOS, and Linux). Zed already had this binding in
`default-windows.json`, but it was missing from `default-macos.json` and
`default-linux.json`.

Since `BaseKeymap::VSCode` returns no supplemental keymap file and
relies entirely on the platform default keymaps, users who selected VS
Code keybindings on macOS or Linux would not get the expected `Ctrl+R`
behavior — instead getting nothing, or having to use the non-VSCode
binding (`Alt+Cmd+O` / `Alt+Ctrl+O`).

This adds the missing binding to both platform defaults, consistent with
what Windows already had.

## Screenshot
The default keybinding in VS Code:
<img width="1512" height="319" alt="Screenshot 2026-04-01 at 07 38 09"
src="https://github.com/user-attachments/assets/12d483a3-3c52-4649-a00f-ee2b8e40bc8c"
/>


Release Notes:

- Added `Ctrl+R` keybinding for opening recent projects on macOS and
Linux, matching VS Code's default behavior on all platforms.
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.

VS Code hotkey bindings are missing Ctrl+R to open Recent workspaces/folders

5 participants