# Lookup relative paths in a worktree more robustly \(\#29274\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d5f3fbdc88bdb599c647df29050048bcb77a8419

Requested commit: d5f3fbdc88bdb599c647df29050048bcb77a8419

Commit: d5f3fbdc88bdb599c647df29050048bcb77a8419

Tree: b753851f2f98182e98419281ca298854ba668992

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Lookup relative paths in a worktree more robustly (#29274)

Attempt to lookup exact relative paths before full worktree traversal,
only do the full traversal if all other methods fail.

Closes https://github.com/zed-industries/zed/issues/28407

Release Notes:

- Fixed wrong paths opening when cmd-clicking in the terminal
```

## Parents

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

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