# markdown: Improve double-click word selection using CharClassifier \(\#47844\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1c7fa87d18bbf10b4592c33d6c1adfe3fd390c20)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1c7fa87d18bbf10b4592c33d6c1adfe3fd390c20

Requested commit: 1c7fa87d18bbf10b4592c33d6c1adfe3fd390c20

Commit: 1c7fa87d18bbf10b4592c33d6c1adfe3fd390c20

Tree: 4d2560569eacf9303960351ad2a8dfe3a5a128b4

Author: Smit Barmase

Committer: GitHub

## Message

```
markdown: Improve double-click word selection using CharClassifier (#47844)

Previously, double-click word selection in markdown used simple
space-based boundaries, so `foo.bar()` would be selected as a single
word.

Now we use `CharClassifier` which properly handles word boundaries:

- **Regular markdown text**: Punctuation (`.`, `(`, `)`, etc.) now acts
as word boundaries. Double-clicking on `foo.bar()` selects just `foo` or
`bar`.
- **Code blocks**: Uses the language's word characters. For example, in
JavaScript, `$foo` and `#bar` are selected as whole words since `$` and
`#` are configured as word characters.

Release Notes:

- Improved double-click word selection in Agent Panel to respect
punctuation and language-specific word characters.
```

## Parents

- [92495328d1cb029572cf99fc4ea3b69db97c1bb5](https://git.cafe/gitcafe/zed/commit/92495328d1cb029572cf99fc4ea3b69db97c1bb5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1c7fa87d18bbf10b4592c33d6c1adfe3fd390c20?format=markdown)
