Allow to reuse windows in open remote projects dialogue (#32138)

Closes https://github.com/zed-industries/zed/issues/26276

Same as other "open window" actions like "open recent", add a
`"create_new_window": false` (default `false`) argument into the
`projects::OpenRemote` action.

Make all menus to use this default; allow users to change this in the
keybindings.
Same as with other actions, `cmd`/`ctrl` inverts the parameter value.

<img width="554" alt="default"
src="https://github.com/user-attachments/assets/156d50f0-6511-47b3-b650-7a5133ae9541"
/>

<img width="552" alt="override"
src="https://github.com/user-attachments/assets/cf7d963b-86a3-4925-afec-fdb5414418e1"
/>

Release Notes:

- Allowed to reuse windows in open remote projects dialogue
This commit is contained in:
Kirill Bulatov 2025-06-05 10:09:09 +03:00 committed by GitHub
parent 274a40b7e0
commit 9d533f9d30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 82 additions and 25 deletions

View file

@ -254,6 +254,8 @@ pub struct OpenRecent {
pub struct OpenRemote {
#[serde(default)]
pub from_existing_connection: bool,
#[serde(default)]
pub create_new_window: bool,
}
impl_actions!(projects, [OpenRecent, OpenRemote]);