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:
parent
274a40b7e0
commit
9d533f9d30
7 changed files with 82 additions and 25 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue