# recent_projects: Perform fuzzy search on compacted paths\. \(\#2703\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b9f5cb0301327332ca566cb49735b95a04b5239b

Requested commit: b9f5cb0301327332ca566cb49735b95a04b5239b

Commit: b9f5cb0301327332ca566cb49735b95a04b5239b

Tree: 46a39c4e072a5a52589e4fadf87711f072aac5c3

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
recent_projects: Perform fuzzy search on compacted paths. (#2703)

Match highlighting for recent projects picker was off, because the path
representation was compacted - for a path '/Users/hiro/Projects/zed' we
compact it to use a tilde instead of home directory. However, the
highlight positions were always calculated for a full path, leading to a
mismatch in highlights. This commit addresses this by running fuzzy
search on compacted paths instead of using long paths. This might lead
to a slight performance hit, but given that recent projects modal
shouldn't have that many items in the first place, it should be okay.

Z-2546

Release Notes:

- Fixed result highlighting in "Recent projects" modal.
```

## Parents

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

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

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