project_panel: Add sort_order settings #50221
project_panel: Add sort_order settings #50221smitbarmase merged 12 commits intozed-industries:mainfrom
sort_order settings #50221Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @Steffen70 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
Hello! Checking in on this PR. I'm happy to make any necessary adjustments or fix any merge conflicts if they pop up. Let me know when someone has a chance to take a look! |
|
Thanks! I’m going to take a look at this today. |
59ac0fa to
afb39fa
Compare
|
Thank you! I clearly should have spent a little more time finalizing this, given the number of edits required. |
|
No worries, most of it was not a correctness issue, but I felt the need for refactoring given the state we were in. Thanks for putting up intial version. Instead of having a single bool, I changed it to a By default, it is
This also follows how VS Code does it, and I have now also updated the importing from there. I also updated the benchmarks for these 12 cases, which are 3 sort modes across 4 different sort orders.
We should be fine on that front. |
sort_order_lexicographic
sort_order_lexicographic sort_order settings
_(Feature Requests zed-industries#24962)_ _"Before you mark this PR as ready for review, make sure that you have:"_ * [x] Added a solid test coverage and/or screenshots from doing manual testing * [x] Done a self-review taking into account security and performance aspects * [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - Added a `sort_order` to `project_panel` settings which dictates how files and directories are sorted relative to each other in a `sort_mode`. --------- Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
(Feature Requests #24962)
"Before you mark this PR as ready for review, make sure that you have:"
Release Notes:
sort_ordertoproject_panelsettings which dictates how files and directories are sorted relative to each other in asort_mode.