Add a way to change what menu::Confirm does in the recent projects modal (#8688)

Follow-up of
https://github.com/zed-industries/zed/issues/8651#issuecomment-1973411072

Zed current default is still to reuse the current window, but now it's
possible to do
```json
"alt-cmd-o": [
  "projects::OpenRecent",
  {
    "create_new_window": true
  }
]
```
and change this.

menu::Secondary confirm does the action with opposite window creation
strategy.

Release Notes:

- Improved open recent projects flexibility: settings can change whether
`menu::Confirm` opens a new window or reuses the old one
This commit is contained in:
Kirill Bulatov 2024-03-02 00:28:51 +02:00 committed by GitHub
parent 37f7957826
commit 3efb871cd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 72 additions and 13 deletions

1
Cargo.lock generated
View file

@ -7180,6 +7180,7 @@ dependencies = [
"ordered-float 2.10.0",
"picker",
"project",
"serde",
"serde_json",
"smol",
"ui",