# Buffer search channel notes \(\#3608\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cc97b0462798443e8bda092c4610ef6e44488827

Requested commit: cc97b0462798443e8bda092c4610ef6e44488827

Commit: cc97b0462798443e8bda092c4610ef6e44488827

Tree: f3179fbd30efb5a31cc0da0d62375644c23ee0ac

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
Buffer search channel notes (#3608)

We were registering `deploy` only on editors, which did succeed for
channel notes; however, channel note does not have an associated
workspace (that we pulled from the editor). It made more sense to just
register these actions for a workspace, notwithstanding the editor.

This PR also fixes a bunch of cx.dispatch_action calls to call the
handler directly instead (e.g. instead of dispatching ReplaceNext we
just call buffer_search_bar.replace_next instead) as otherwise these
actions are not handled if the buffer search bar does not have the
focus.

Release Notes:

- N/A
```

## Parents

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

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

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