# Explore registrar-based API for search bar\. · gitcafe/zed

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

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

Visibility: public

Requested revision: f70eddc988dfcfa0c83db6d2a16ca80b820ae68e

Requested commit: f70eddc988dfcfa0c83db6d2a16ca80b820ae68e

Commit: f70eddc988dfcfa0c83db6d2a16ca80b820ae68e

Tree: 1f97fc16e436820c3f056422da1e1b07b0daefc4

Author: Piotr Osiewicz

Committer: Piotr Osiewicz

## Message

```
Explore registrar-based API for search bar.

This commit adds a Registrar trait for use by search crate. Registrar can register actions on some target and search can utilize that trait to opaquely add actions on that target.
Notably, search is now opt-in (it always was in zed2 actually). Having editor doesn't make it searchable straight out of the gate. You might have to call BufferSearchBar::new a bunch more.

```

## Parents

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

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