Skip to content

agent: Make agent::addSelectionToThread use current line when no selection#48045

Merged
bennetbo merged 3 commits intozed-industries:mainfrom
notpeter:send_agent_current_line
Feb 20, 2026
Merged

agent: Make agent::addSelectionToThread use current line when no selection#48045
bennetbo merged 3 commits intozed-industries:mainfrom
notpeter:send_agent_current_line

Conversation

@notpeter
Copy link
Contributor

When there is no selection, make cmd-> (agent::addSelectionToThread) use the current line containing the cursor instead of doing nothing.

Supports both Zed Agent and Zed Assistant.
Works with multiple-cursors and a mix of selections and cursors.

Authored by Claude Opus 4.5, tested by me.

Release Notes:

  • agent: Make agent::addSelectionToThread (cmd->) use the current line of the cursor when there is no selection.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 30, 2026
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Jan 30, 2026
@bennetbo
Copy link
Member

Thank you! I hope you are well

@bennetbo bennetbo enabled auto-merge (squash) February 20, 2026 12:48
@bennetbo bennetbo merged commit f22f4db into zed-industries:main Feb 20, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants