-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
bug: eza assigns icon from config-file's filenames and extensions to matching directories #1116
Comments
At the moment this is expected behavior. For both filename- and extension-based style overrides The reason is simple: To keep it simple. The If we were to advance this to distinguish between directories and files, we would have to discuss how we handle this both in the theme file and in the code. Do we add another So there are quite a few things to consider and discuss, but at least I am not (yet) convinced that the, I believe, few edge cases warrant the discussion, design and implementation effort. I think we should let this big new feature settle first. Let users discover it, see how they make use of it, and let feedback flow back to us, so we later actually know how to improve it best. But that's only my opinion on this, maybe the others like @PThorpe92 think differently about this. |
I assumed that I mentioned it because the docs didn't mentioned directories nor the example config file had a directory example.
Maybe mentioning the directories on docs should help. Regarding the extension match, certainly is an edge case, I found it first while extracting compressed file that created a directory including the extension of the file, certainly not expected, so the dir got the extension icon; then when trying icons on |
I see what you mean, I agree and think it is probably fine the way that it is.. Unless there turns out to be a particularly common example of a directory that is named the same as a file in which one would want to distinguish. Maybe something gets added to the documentation to clarify that this is the expected behavior? Glad to see people are using the feature 😁 |
Icons from config file are assigned to directories on match, that doesn't happen with built-in filenames and extensions. Bug or easter-egg? =P
main
branch, config file here.eza -l --icons --group-directories-first testing
The text was updated successfully, but these errors were encountered: