# Improve context menu experience in the markdown preview \(\#59993\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a8ffae4c0047e58a6e6820ce13cb8ac3f097ec8b

Requested commit: a8ffae4c0047e58a6e6820ce13cb8ac3f097ec8b

Commit: a8ffae4c0047e58a6e6820ce13cb8ac3f097ec8b

Tree: 111cad7cbdb4cb71cb454db466fb50ec996d86d9

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Improve context menu experience in the markdown preview (#59993)

* removes useless "no items" pop-up and does not show any menu at all if
no actions are applicable.
This required adding `pub fn maybe_menu` into the 

* adds actions to copy rendered text and markdown text: in fact,
`cmd/ctrl-c` work already but we did not expose it

Before:


https://github.com/user-attachments/assets/906f2bfd-bf19-48de-bbb5-85bb33431f60

After:


https://github.com/user-attachments/assets/2c039c4d-2d42-4689-9ac1-12e3b10119cf

Release Notes:

- Improved context menu experience in the markdown preview
```

## Parents

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

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