# terminal/search: Partially fix search in terminal\. · gitcafe/zed

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

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

Visibility: public

Requested revision: b3d8b2313901b29402cb145578b4fce2b22cb435

Requested commit: b3d8b2313901b29402cb145578b4fce2b22cb435

Commit: b3d8b2313901b29402cb145578b4fce2b22cb435

Tree: afdcaa05b038206433d83e26dad00ba84de44a88

Author: Piotr Osiewicz

Committer: Piotr Osiewicz

## Message

```
terminal/search: Partially fix search in terminal.
There are two issues with search in terminal as is:
- terminal's pane is not registered as a "legit" pane, so we dispatch buffer search bar::Deploy on the most recent "legit" pane. By legit I mean that
  workspace::active_pane will *never* return terminal pane as active.
- We've had the implementation of as_searchable commented out. Duh!

This commit fixes second issue. That means that if you drag the terminal over to the main editor pane (so that it's in a "legit" pane), it'll work. 1st issue still stands though.

```

## Parents

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

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