Add configurable word characters#59530
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @Zhaoyikaiii on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 372fed46d6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 599b0a3abc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Adds a
word_characterslanguage setting that lets users configure extra characters considered part of a word for editor selection. With:{ "word_characters": ["-"] }double-click selection can include
foo-baras one word.This uses existing language settings merging, so the setting can be defined globally or under
languages. Language extension word characters continue to apply through the existing classifier path.VS Code imports translate
editor.wordSeparatorsintoword_charactersfor ASCII punctuation that VS Code does not treat as a separator.Validation
git diff --checkcargo fmt -p language -p multi_buffer -p editor -p settings -p settings_content --checknpx prettier --check src/reference/all-settings.mdcargo check -p settings_content --libcargo check -p language --libcargo test -p language test_surrounding_word_with_extra_word_characterscargo test -p settings test_vscode_importcargo check -p editor --libRelease Notes:
word_characterssetting for configuring word selection behavior.