# title_bar: Display subfolders in the project button \(\#54796\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 950161ff0ff34d313c795eef6c28b958cb487039

Requested commit: 950161ff0ff34d313c795eef6c28b958cb487039

Commit: 950161ff0ff34d313c795eef6c28b958cb487039

Tree: a04823ee81fc157ae40094712dff03f427e04f70

Author: Danilo Leal

Committer: GitHub

## Message

```
title_bar: Display subfolders in the project button (#54796)

Follow up to https://github.com/zed-industries/zed/pull/54406.
Closes https://github.com/zed-industries/zed/issues/54782.

In the PR linked above, we made the label that's displayed in the
project button be always the repository name. However, if you're opening
up a subfolder of that repository as the main-root of a given
project/workspace, we wouldn't display that anymore. This PR fixes that
by _still_ displaying the repo name, but the subfolder, too, in the
titlebar:

<img width="500" alt="Screenshot 2026-04-24 at 4  52@2x"
src="https://github.com/user-attachments/assets/04c2c61d-874d-4694-88c9-06bad9677e49"
/>

Release Notes:

- Fixed a bug where we don't display subfolders of a repository in the
title bar's project button.
```

## Parents

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

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