-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
Set folder icon depending on it's name #902
Comments
this would be interesting indeed :) |
just a side note: vscode renders svg which is not feasible in nvim-tree since a terminal renders unicode and not images. |
@kyazdani42, nerdfont patch has various directory icons and lsd uses them. Though it is probably web-devicons task to resolve the icon depending on directory name. |
Larger issue #1508 should cover this one, with an icon applied to the path regex. |
has anyone managed to get this work? |
This can be done, using a regex to apply:
Pull Requests are always gratefully appreciated. |
So there is already a way to implement it or not yet? I am a little bit confused with the different open issues about this same topic and their answers. I think that the mere fact of being able to change the color of the folder according to its regex would be more than enough to differentiate the purpose of specific folders. |
The highlighting and most of the renderer was recently rewritten: #2455 This funtionality should be easier to implement: implement a new That new decorator could read some new options and apply them to icon and file names. It might be easier for the user to supply functions instead of using regexes. See #1508 (comment) |
@alex-courtis does it mean we can already do it? if we provide as a consumer a decorator function in the nvim-tree setup? could you provide a simple example to override the icon of a folder name? |
Sorry, it's not been built yet. We'll get to it... |
Is there any way to set icon for folder depending on it's name that will be very useful like in vs code
The text was updated successfully, but these errors were encountered: