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

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

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

Visibility: public

Requested revision: f164eb5289109699077bcef7d99bce9dac005c30

Requested commit: f164eb5289109699077bcef7d99bce9dac005c30

Commit: f164eb5289109699077bcef7d99bce9dac005c30

Tree: 6c91268bd497bc71309f4733579a240120676ede

Author: Piotr Osiewicz

Committer: Piotr Osiewicz

## Message

```
recent_projects: Perform fuzzy search on compacted paths.

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

```

## Parents

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

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