-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add sorting support #73
Conversation
84f1116
to
17c0751
Compare
Hey @maximbaz please review when possible. |
676c7c4
to
4c4e743
Compare
4c4e743
to
f318a92
Compare
Hello! Very happy to see this PR 🙂
Enough for now 😄 |
src/app.rs
Outdated
NodeSorter::ByIsBroken => "§⨯", | ||
NodeSorter::ByIsReadonly => "ro", | ||
NodeSorter::ByMimeEssence => "mime", | ||
NodeSorter::BySymlinkAbsolutePath => "§rel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit suspicious, relative or absolute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug... Nice find...
Hello! Very happy to see this PR 🙂
Enough for now 😄 |
Aaah I see. To be honest I don't think it's needed, I simply saw that in code and was curious how to invoke that code path 🙂 Sorting by relative path is by far what I would use, personally.
Aaaah I see... There is of course eq_ignore_ascii_case, but to support unicode you might want to look into lexical_sort library, e.g. I'd definitely go for |
f318a92
to
8b52bd5
Compare
I left the case sensitivity to default since it seems trivial. Grouping sorters will add immense complexity. So left it at flat, but added more parameters to be able to achieve more without needing to group things. |
I like the default sorting very much now 👍 I'm using
|
Got a nice idea. I can just use |
Wow |
8b52bd5
to
d723b0c
Compare
Interesting idea to make |
Nice!
general:
show_hidden: false
initial_sorting:
- sorter: ByCanonicalIsDir
reverse: true
- sorter: ByIsBroken
reverse: true
- sorter: ByIRelativePath
reverse: false Why is it, that if I change
|
d723b0c
to
fb07f22
Compare
Also improve filtering. Closes: #58
fb07f22
to
83d550e
Compare
|
I see! I think it's all looking perfect to me! 🎉 ship it 🚀 😁 |
Closes: #58