-
-
Notifications
You must be signed in to change notification settings - Fork 283
feat: don't consider "extensions" for directories when sorting #821
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
Comments
I don't think this technically classifies as a bug (as it is technically correct), but I'd love to see more input on whether this should be changed to reflect your desired behavior. Tentatively, I do agree that this should be changed, but I haven't thought much about it. |
One way to think about it is that directories have an implicit I've found the current behavior surprising. For instance, when listing the installed packages on NixOS, I'd expect the multiple Given xkcd 1172, maybe I do think the current behavior is a bug, but would be happy to be corrected as to why it is useful or expected. |
I find this is pretty horrifying way of thinking about it, ngl. =P Shouldn't be a very tricky patch tbh, putting aside bikeshedding over how it should be handled. |
I am wishing this will be considered more seriously in the near term. Just listed a directory containing subdirectories with names like |
IMO, using Alternative is to think of directories as containing an implicit @cafkafk will you accept a patch for either of these solutions? |
Thinking more on this, the simplest solution is to treat all directories exactly as if no This was bothering me enough to implement a fix. Thanks @Omnikron13 for showing how to do this. |
$ mkdir a b.m c.n d.m e ; touch f.txt g.png h.png $ eza --group-directories-first a b.m c.n d.m e f.txt g.png h.png $ eza --group-directories-first --sort=extension a e b.m d.m c.n g.png h.png f.txt
The directories are also being sorted by extension based on the dot in the names. even though directories don't have extensions.
The text was updated successfully, but these errors were encountered: