Skip to content

Add support for named folder icons #36351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jacobtread
Copy link

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 value specified is the key into "file_icons" for the icon to use.

Allows associating the name of a folder to a specific folder icon for folder names that have some sort of meaning. Makes it easier in large code bases to differentiate folders from eachother at a glance

I believe this needs a bump in the icon_themes schema

Closes #20295

Also referenced #23987 (comment)

Release Notes:

  • Added support for name specific folder icons

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

image

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 value specified is the key into
"file_icons" for the icon to use
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Aug 17, 2025
@maxdeviant maxdeviant changed the title feat: named folder icons support Add support for named folder icons Aug 17, 2025
@maxdeviant maxdeviant self-assigned this Aug 17, 2025
@jacobtread
Copy link
Author

I will try and resolve the conflicts shortly :) just having a bit of trouble compiling the latest version of Zed on Windows was having a bit of cargo issues with one of the recent changes so have been working on a older copy. I think its resolved now after reinstalling the toolchain though just waiting for the build now

Add back a change that was removed when merging to get past a conflict
that changed some code significantly
@jacobtread
Copy link
Author

All up to date now :)

@nishatislam04
Copy link

are we going to have this director_iocns attribute support?
if yes, thats superb. now we can experience vscode material theme icon extension feeling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Icon Associations for files and folders
3 participants