Closed
Description
for example: et --dirs-first
will not sort directories above files, but if sort type is specified: et --dirs-first -s name
it works as expected.
i was able to produce the expected behavior by adding a None
enum variant to SortType
and adding:
} else if ctx.dirs_first() {
Order::from((SortType::None, true))
.comparator()
.map(|func| current_node.sort_children(func));
}
to this line, but there are probably "cleaner" approaches.
also, i noticed that clippy suggests a bunch of stylistic refactors all over. do you have an opinion against such stylistic approaches?
Metadata
Metadata
Assignees
Labels
No labels