Skip to content

Double clicking a string has different selection behaviour in JS and JSON/CSS file types #44266

@valtism

Description

@valtism

Reproduction steps

  1. Open a .tsx and a .json / .css file
  2. Paste the string `"#fbf6fd" in each
  3. Double click it

Current vs. Expected behavior

Current behaviour:

Double clicking selects the whole string in the TSX file, while double clicking selects all but the hash in CSS/JSON files.

Screen.Recording.2025-12-06.at.2.30.55.pm.mov

Expected behaviour:

Ideally, I'd like the hash to be selected in all cases, since it makes copying hex codes easier, but really as long as they are consistent that would be best.

Zed version and system specs

Zed: v0.216.0+preview.88.e55a8c9cb1756058e653b3c2f65863dd10c46b58 (Zed Preview)
OS: macOS 26.1
Memory: 32 GiB
Architecture: aarch64

Attach Zed log file

No response

Relevant Zed settings

settings.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:editorFeedback for code editing, formatting, editor iterations, etcfrequency:alwaysBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions