# feat: Add reveal buffer if already open \(\#63306\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 351899e53107db60ba27dce7b94fa55d47b769c4

Requested commit: 351899e53107db60ba27dce7b94fa55d47b769c4

Commit: 351899e53107db60ba27dce7b94fa55d47b769c4

Tree: 232cee9eec120a7fcc5170f63464cae0b26af753

Author: Sean Wood

Committer: GitHub

## Message

```
feat: Add reveal buffer if already open (#63306)

# Objective

Fixes #12572

## Solution

- Adds an opt-in `reveal_if_open` setting which enables searching and
revealing an already open buffer
- Ensures this only happens if there is no pane target for the open
intent

## Testing

- Built for and tested on my Mac
- Tests added covering the scope of the feature

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Showcase


https://github.com/user-attachments/assets/cdcc78cd-85fd-4b56-b562-feba375ecd03

---

Release Notes:

- Added configuration to reveal buffers already open in a different pane
instead of the active pane, via `reveal_if_open`

---------

Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
```

## Parents

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

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