Skip to content

editor: Make underscores and newlines subword boundaries#50552

Merged
ConradIrwin merged 3 commits intomainfrom
fix-caret-move
Mar 13, 2026
Merged

editor: Make underscores and newlines subword boundaries#50552
ConradIrwin merged 3 commits intomainfrom
fix-caret-move

Conversation

@ConradIrwin
Copy link
Copy Markdown
Member

@ConradIrwin ConradIrwin commented Mar 3, 2026

Updates #21054

Authored-By: @ngauder

Release Notes:

  • Added _ and newline to subword boundaries

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 3, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 3, 2026
Copy link
Copy Markdown
Contributor

@ngauder ngauder left a comment

Choose a reason for hiding this comment

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

These changes fix the failing test cases and adapt them to the new subword behavior.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert("loremˇ_ˇipsum", cx);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert("lorem_ˇipsumˇ_dolor", cx);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert("loremˇ_ˇipsum", cx);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert("lorem_ˇipsumˇ_dolor", cx);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert("loremˇ_ˇipsum", cx);

@ConradIrwin ConradIrwin merged commit 7eb009e into main Mar 13, 2026
28 checks passed
@ConradIrwin ConradIrwin deleted the fix-caret-move branch March 13, 2026 05:16
tommyming pushed a commit to tommyming/zed that referenced this pull request Mar 15, 2026
…ies#50552)

Updates zed-industries#21054

Authored-By: @ngauder

Release Notes:

- Added _ and newline to subword boundaries

---------

Co-authored-by: Nikolas Gauder <nikolas.gauder@tum.de>
@iamvoidcoder
Copy link
Copy Markdown

This is showing as merged in the latest build v0.229.0 release notes. How to use it? Not working out of the box. Does it need any special settings to enable it?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants