# Add support for named folder icons \(\#36351\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5f20b905a56f8589f4af9d955be9447f719df012

Requested commit: 5f20b905a56f8589f4af9d955be9447f719df012

Commit: 5f20b905a56f8589f4af9d955be9447f719df012

Tree: bfdb0b92dcf29a89ef463612195185ce3b7357f8

Author: Jacob

Committer: GitHub

## Message

````
Add support for named folder icons (#36351)

Adds a `named_directory_icons` field to the icon theme that can be used
to specify a collection of icons for collapsed and expanded folders
based on the folder name.

The `named_directory_icons` is a map from the folder name to a
`DirectoryIcons` object containing the paths to the expanded and
collapsed icons for that folder:

```json
{
  "named_directory_icons": {
    ".angular": {
      "collapsed": "./icons/folder_angular.svg",
      "expanded": "./icons/folder_angular_open.svg"
    }
  }
}

```

Closes #20295

Also referenced
https://github.com/zed-industries/zed/pull/23987#issuecomment-2638869213

Example using https://github.com/jacobtread/zed-vscode-icons/ which I've
ported over from a VSCode theme,

<img width="609" height="1307" alt="image"
src="https://github.com/user-attachments/assets/2d3c120a-b2f0-43fd-889d-641ad4bb9cee"
/>

Release Notes:

- Added support for icon themes to change the folder icon based on the
directory name.

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
````

## Parents

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

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