# recent_projects: Fix open folder keybinding \(\#61305\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8556974b402cfb9e83bba1f1882862e87beb9056

Requested commit: 8556974b402cfb9e83bba1f1882862e87beb9056

Commit: 8556974b402cfb9e83bba1f1882862e87beb9056

Tree: cbd19c65786cfddd7d79eff3d61e6fd3a0b78d04

Author: mTvare

Committer: GitHub

## Message

```
recent_projects: Fix open folder keybinding (#61305)

# Objective

Closes #58986

This PR fixes `Ctrl-K Ctrl-O` opening a file picker while the Recent
Projects picker is focused.

The keymaps globally bind `Ctrl-O` to `workspace::OpenFiles` and `Ctrl-K
Ctrl-O` to `workspace::Open`

The Recent Projects context also binds `Ctrl-K` to toggle its actions
menu. The more specific binding ate `Ctrl-K` stopping the global `Ctrl-K
Ctrl-O` bind occuring.

## Solution

Add a `RecentProjects`-specific `Ctrl-K Ctrl-O` binding to
`workspace::Open` after the existing contextual `Ctrl-K` binding.
This matches the action associated with “Open Local Folders,” including
its multiple-selection and open-mode behavior.
macOS is unchanged because its primary `Cmd-O` shortcut already maps to
`workspace::Open`.

## Testing

Try #58986, then this.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed `Ctrl-K Ctrl-O` opening a file picker instead of the local
folder picker from Recent Projects.
```

## Parents

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

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