Project panel from lexicographical to natural sorting. #20126
TomPlanche
started this conversation in
Show and tell
Replies: 2 comments 11 replies
-
You're definitely not supposed to change things forever, but simply replacing the sorting mechanism: someone prefers things the other way around. What's really needed is multiple sorting modes and a way to toggle between them. |
Beta Was this translation helpful? Give feedback.
10 replies
-
What's the status here? Really looking forward for this feature! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While working on Leetcode problems, I stumbled upon a project panel sorting who bothered me.
The folders (and files) are lexicographicaly sorted...
This is annoying and not natural.
I found that the responsible for this is
sort_worktree_entries
in thecrates/project/src/project.rs
file used in the line 2005project::sort_worktree_entries(&mut visible_worktree_entries);
of the./project_panel/src/project_panel.rs
file.This uses the
./crates/util/src/paths.rs
'scompare_paths
function.I'm changing the
compare_paths
function tocompare_paths_with_sort_mode
.Now the folders and files are in alphabetical order.
Beta Was this translation helpful? Give feedback.
All reactions