# zeta: Rework displaying paths in completion rating modal \(\#23129\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1ddf754b8b2fe80156c3e9beede4a322f0755940

Requested commit: 1ddf754b8b2fe80156c3e9beede4a322f0755940

Commit: 1ddf754b8b2fe80156c3e9beede4a322f0755940

Tree: 5730b05a9bfd2dc035b47d7dff01b8aefa4b291b

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
zeta: Rework displaying paths in completion rating modal (#23129)

Two issues i ran into while looking at the completion rating modal
- Single-file worktrees file names are not displayed at all
- Hard to see the filename when the path is long (lots of directories)

This PR fixes this by displaying the filename on the left, followed by
the full path (including the worktree name), similar to how we do it in
the file finder/assistant panel /file command
| Before | After |
|--------|--------|
| <img width="1067" alt="Screenshot 2025-01-14 at 16 09 05"
src="https://github.com/user-attachments/assets/628fde18-da9a-4d98-8ddf-ed0ab0cd8d35"
/> | <img width="1161" alt="Screenshot 2025-01-14 at 16 17 52"
src="https://github.com/user-attachments/assets/80c6a4e1-065d-4b0a-b9c0-5f3391af4557"
/> |





Release Notes:

- N/A
```

## Parents

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

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