recent projects: Fix inconsistent keybinding with which window is replaced or not (#20176)

This removes the inconsistency between these two workflows:
- Clicking on the project name in the upper left shows:
<img width="333" alt="image"
src="https://github.com/user-attachments/assets/f54c34b4-67ab-4cbc-85ee-845c41aa4a8c">

- Using `projects: Open recent` shows:
<img width="337" alt="image"
src="https://github.com/user-attachments/assets/b1eb244f-ce28-4e6c-8404-b6cd88caef1e">

---

We now use `enter` to re-use the window and `cmd-enter` to open a new
window in both cases

Closes #16361

Release Notes:

- Fixed an inconsistency in the recent project picker, where different
keybindings would determine whether to reuse the window or not
This commit is contained in:
Bennet Bo Fenner 2024-11-04 17:41:25 +01:00 committed by GitHub
parent 15e7b67559
commit 4bbde40267
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ pub struct OpenRecent {
}
fn default_create_new_window() -> bool {
true
false
}
gpui::impl_actions!(projects, [OpenRecent]);