# Unify copy actions for agent panel and markdown \(\#63884\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6f72bdb7b241a16bd3d9c1b01ae7edea149440b9

Requested commit: 6f72bdb7b241a16bd3d9c1b01ae7edea149440b9

Commit: 6f72bdb7b241a16bd3d9c1b01ae7edea149440b9

Tree: 46b86337ab70c2e3d17754726871a047e9f02a65

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Unify copy actions for agent panel and markdown (#63884)

Before, it was not possible at all to copy the text from the agent
panel, only its markdown.
The PR breaks the existing ctrl/cmd-c binding there by using the same
approach markdown preview does: copy as text by default, allow to copy
as markdown via the context menu.

Before:


https://github.com/user-attachments/assets/2014f363-5167-4700-be86-9c0774d7e4fd

After:


https://github.com/user-attachments/assets/1dad253c-7a3b-4ca7-99c8-e8df8b3c3fd6


Release Notes:

- Changed agent panel to copy text with cmd/ctrl-c, as markdown preview
does. `markdown::CopyAsMarkdown` action is available still and can be
bound if needed.
```

## Parents

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

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