# agent: Fix cmd-f not working when buffer is open \(\#60750\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 585e4aab0891effe0875fc7329b6bd50e7705750

Requested commit: 585e4aab0891effe0875fc7329b6bd50e7705750

Commit: 585e4aab0891effe0875fc7329b6bd50e7705750

Tree: e5801b208b1d8321fcd3dc6a511d95e9ac6ae68b

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Fix cmd-f not working when buffer is open (#60750)

Turns out I only tested it with all tabs closed, the keybinding would
only work when all tabs were closed and you focused the agent panel. If
a file was opened in the center pane, cmd-f would open a search in that
file instead of searching in the agent panel, even if the thread view as
focused.

Closes #60686

Release Notes:

- agent: Fixed an issue where cmd-f would not work if file is open in
center pane
```

## Parents

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

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