Force the file extension icon on a FileTree element #3580
maelgangloff
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Thanks for the feedback. This is an interesting case, which I think raise a few questions that should be considered if we decide to move forward with such customization:
Really interested in hearing everyone's thoughts on this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlightare you using?0.36.2
What is your idea?
I think it would be interesting to add a way to tell the FileTree component to use a different icon than the one it deduced from the file extension.
Why is this feature necessary?
For example, in some projects, local environment variables are written to a
.env.localfile, which is copied from.env.When I explain this in my documentation, the first file has a default icon, while the second has the correct icon ( ⚙️ ) to clearly indicate that it's a configuration file.
This is a specific case, but I think there are probably others.
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions