# Adjust "recent projects" modal behavior to allow opening projects in both current and new window \(\#8267\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 71557f3eb34b9b07a15d134612bec5b083cce95b

Requested commit: 71557f3eb34b9b07a15d134612bec5b083cce95b

Commit: 71557f3eb34b9b07a15d134612bec5b083cce95b

Tree: 6ee0275e09fda258d93bae795ac55b7dfa35e550

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Adjust "recent projects" modal behavior to allow opening projects in both current and new window (#8267)

![image](https://github.com/zed-industries/zed/assets/2690773/7a0927e8-f32a-4502-8a8a-c7f8e5f325bb)

Fixes https://github.com/zed-industries/zed/issues/7419 by changing the
way "recent projects" modal confirm actions work:
* `menu::Confirm` now reuses the current window when opening a recent
project
* `menu::SecondaryConfirm` now opens a recent project in the new window 
* neither confirm tries to open the current project anymore
* modal's placeholder is adjusted to emphasize this behavior

Release Notes:

- Added a way to open recent projects in the new window
```

## Parents

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

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