fix: ignore extensions for directories when sorting#1418
fix: ignore extensions for directories when sorting#1418sdht0 wants to merge 3 commits intoeza-community:mainfrom
Conversation
ariasuni
left a comment
There was a problem hiding this comment.
Indeed, it makes a lot of sense to change the behavior this way!
|
Hum now that I think of it, it would be great to have some tests for this behavior. You can take 570b977, add it to this PR and see if it works in the CI. |
|
Thanks. Looks like more tests need to be updated? |
Would appreciate it! |
ae526de to
077d6da
Compare
|
Hey thanks for the pr, this is indeed a slight issue !! |
gierens
left a comment
There was a problem hiding this comment.
Nice catch! Thanks! ... Code, functionality and performance looks good to me!
|
@cafkafk could you give this another look? Would be nice to get this into a release and help me remove my local nix override. |
|
Not sure what the next steps are to get this merged. |
|
Well, we’d have to wait for @cafkafk to be available to review that but idk when that’ll be 😭 |
The merge-base changed after approval.
f96bc8d to
788a8d9
Compare
|
Hi all. I seemed to have missed the latest comment by @cafkafk (no Github email?). Anyway I have cherry picked my change to the latest main. I tried following the instructions to regenerate the tests. However, running @ariasuni /@cafkafk: can you help regenerate the tests and get this finally merged? |
|
Hey, you can, on Linux:
Otherwise somebody else has to do these steps (maybe I can do it in a few days…). |
Before this patch:
Note how
01.cityis sorted after02.applewhen sorting by extension.After patch:
Directories are treated exactly as if there are no
.was found in the name.Closes #821