Skip to content

markdown: Support shift+click to extend text selection#57586

Merged
smitbarmase merged 1 commit into
zed-industries:mainfrom
cppcoffee:markdown-support-shift-click
May 25, 2026
Merged

markdown: Support shift+click to extend text selection#57586
smitbarmase merged 1 commit into
zed-industries:mainfrom
cppcoffee:markdown-support-shift-click

Conversation

@cppcoffee

@cppcoffee cppcoffee commented May 24, 2026

Copy link
Copy Markdown
Contributor

When shift is held during a single click, extend the existing selection from its anchor point to the clicked position instead of starting a new selection.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • Added markdown support shift+click to extend text selection

When shift is held during a single click, extend the existing selection
from its anchor point to the clicked position instead of starting a new
selection.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 24, 2026
@smitbarmase smitbarmase self-assigned this May 25, 2026
@smitbarmase smitbarmase added the area:preview/markdown Feedback for Zed's Markdown preview label May 25, 2026

@smitbarmase smitbarmase left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@smitbarmase smitbarmase added this pull request to the merge queue May 25, 2026
Merged via the queue into zed-industries:main with commit 8309bc4 May 25, 2026
47 checks passed
@cppcoffee cppcoffee deleted the markdown-support-shift-click branch May 26, 2026 00:59
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
…s#57586)

When shift is held during a single click, extend the existing selection
from its anchor point to the clicked position instead of starting a new
selection.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Added markdown support shift+click to extend text selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:preview/markdown Feedback for Zed's Markdown preview cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants