# agent: Improve discoverability of the quote selection action \(\#40897\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a24601903aa1e75e89527c8f455557717a330b07

Requested commit: a24601903aa1e75e89527c8f455557717a330b07

Commit: a24601903aa1e75e89527c8f455557717a330b07

Tree: 9afbea774f0cf9f340869177c726b50b28623688

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Improve discoverability of the quote selection action (#40897)

This PR renames the `agent::QuoteSelection` to
`agent::AddSelectionToThread` _and_ adds it as a menu item in both the
right-click context menu within regular buffers as well as the
"Selection" app menu.

We've received feedback in the past about how hard to discover this
feature is, and after watching [the Syntax podcast
crew](https://www.youtube.com/watch?v=bRK3PeVFfVE) recently struggle
with doing so—and then naturally looking for it in the context menu and
not finding it—it felt like time to push a change. I think the rename +
the availability in these places could help bringing it to surface more.

The same action can be done in Cursor through the `cmd-l` keybinding,
but in Zed, that triggers `editor::SelectLine`, which I don't want to
override by default. However, if you're using Cursor's keymap, then
`cmd-l` does trigger this action, as expected.

<img width="500" height="1812" alt="Screenshot 2025-10-22 at 12  01@2x"
src="https://github.com/user-attachments/assets/dfc2c41c-8d0a-4a1a-8ea1-1bd5d1aa1171"
/>


Release Notes:

- agent: Improves discoverability of the previously called "quote
selection" action—which allows to add a text selection in a buffer as
context within the agent panel—by renaming it to "add selection to
thread" and making it available from the right-click editor context menu
as well as the "Selection" app menu.
```

## Parents

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

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