# Allow opening a new window by default \(\#58805\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b27c1bb78e929cd9497fb81f50a65d5bb0f79881

Requested commit: b27c1bb78e929cd9497fb81f50a65d5bb0f79881

Commit: b27c1bb78e929cd9497fb81f50a65d5bb0f79881

Tree: d247317933fcccd245835fd131e1a5157942ea4d

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
Allow opening a new window by default (#58805)

Adds `default_open_behavior` which let's users control which action
should be the default (add to existing window/open a new window)

TODO:
- [x] Use sensible icon (not `IconName::Screen`) when
`default_open_behavior` is set to `new_window`
- [x] Tweak wording for actions in recent projects menu
<img width="420" height="59" alt="image"
src="https://github.com/user-attachments/assets/69ef112e-bf20-4dd1-9994-e4442266ef87"
/>


Release Notes:

- Added `default_open_behavior` which controls which action (add to
sidebar/open in new window) should be the default when selecting a
project from the recent projects menu

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

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

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