Proposal on the extension system for icon pack support #19488
Unanswered
SergioRibera
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to propose an idea to improve the icon system as plugins. I was checking and there are already issues about it (#8843), but I want to formalize it in this discussion and debate about the proposal in order to make a PR according to the needs.
This proposal was previously discussed in #8843 (comment)
My proposal is that each language extension would provide a default icon and that there would be icon packs to replace these defaults. Zed would have a set of default icons that would act as a custom package, and the behavior would be as follows:
This would be an example of how an
extension.toml
manifest for an extension that supports several languages might look like:The JSON file generated to optimize access to the icons could look like this:
In this way, the extension can manage its icons efficiently, without having to do too many unnecessary reads from the file system, improving performance.
If you find this proposal useful and would like to explore it further, I would be happy to collaborate with a prototype PR to test the idea.
Note
This proposal aims to solve problems such as:
What if I want to add a new language that does not come in the official Zed package? Will I have to wait for the Zed team to add the icon with its style? Where is the customisation? I mean I like flat icons, but someone else likes neon icons or more cartoon icons. I think this should be a bit more automatic and flexible, so my proposal goes that way.
Beta Was this translation helpful? Give feedback.
All reactions