Open LastExceed opened 6 days ago
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
There is no need for these 2 options to be mutually exclusive with any of the others, nor each other. Allowing combinations with these would enable more granular user configuration, without the need to implement any new comparisons for the sorting algorithm, nor sacrificing any possible configuration that is currently available.
Proposed design
Add 2 new checkboxes:
separate folders from files
(Default: Enabled)place files before folders
(Default: Disabled)Example & Motivation
(For context, in Rust projects all¹ directories under
/src
are accompanied by a file with the same name) Notice how far apart thefood.rs
file andfood
directory are in the left example, despite sematically being the same thing. This is quite inconvenientConsiderations
mixed
will becomeSortOrder.Default
+ disableseparate folders from files
filesFirst
becomesSortOrder.Default
+ enablefiles before folders
FoldersNestsFiles
to something likeNestsFirst
(since folder placement would now be configured separately)default
is nothing but that in the processImplementation
I'd like to implement this myself, but I need feedback on the proposed design, and guidance on how to perform the required migrations
¹pre-1.30 projects use a bunch of
mod.rs
files instead, but that's beside the point