-
Notifications
You must be signed in to change notification settings - Fork 39
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
Sidebar Sort Options #328
Comments
@juanmiguel431 for reference, this is called natural sort order - https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/ |
Another option that would be nice (see also #721 ):
|
Do it. |
I'd love to see sorting by file type. |
I would also like the alphabetical sorting to be case-insensitive. It appears that it orders alphabetically by ASCII code. |
Yes, sorting file by type would amazing! |
+1 for sorting by filetype |
on Mac, the default sorting is case insensitive. I would be nice to have an option to sort files case sensitively. |
Yes, sorting file by type would amazing! |
I believe the best approach to fix this is to make the sorting function public so anyone sort the files as they wish by just defining a function. It would be nice to have a menu above the sidebar or on bottom listing as menuitems all the available sorting functions defined (by date, by type, by name, etc [as defined by the custom function(s) description]) |
I would love to be able to sort by last modified date. When dealing with tons of files this is the easiest way to find what you are working on. |
@tobirothschild-gugg , +1 for sorting the files according to last modified date. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@FichteFoll @titoBouzout @keith-hall Could you guys provide some information on whether or not this feature is in the works? I’m unsure exactly who to ask about this. |
We dont know. The features that are being worked appear in the change log for the dev builds. https://www.sublimetext.com/3dev |
I locked this issue because the conversation is useless, is obvious what to do. Just go ahead and +1 what you like. |
No, it is invoked any time a file notification is received from the OS. We have to sort and find where the file is located in our in-memory tree. Beyond that, we actually do get bug reports from users having tens of thousands of files in directories complaining when things aren't fast.
Depending on how it is written in Python, really slow. I would not want the CPU taking 1s to decided where in the tree to store a file that was just created.
Ultimately the users blame ST when there is poor performance, since it isn't easy to know that a customization is causing the issue.
I am answering questions from users. I don't think it is heated at all, just explaining the sort of decisions we have to consider in order to keep Sublime Text fast, and why sometimes trivial looking things aren't implemented right away. |
Well you are wrong, you are deciding for the users, you can just add custom sorting while at the same time keeping stable (blazing fast ST TM sorting). But you dont want which is ok. Fine. Nothing else to talk I guess. |
@titoBouzout Please stop locking the issue, you are being actively hostile to the community |
@titoBouzout, if the post is locked, no one can +1 (up vote comments) and any reference to this issue would not show up here, unless one of the developers referenced it or up voted it. Although, if Python is not a performance viable API, then, a C++ API come to rescue: (Add a C++ API for critical/time sensitive code #3095) |
While you're correct, that is irrelevant and not the root cause of the problem. The reason this will take more than 5 years is not the complexity of the sorting algorithm(s), but rather the complexity of any file reordering (independent of the algorithm) since it would apparently require a lot of code rewrite and dealing with the file tree structure. Which is pretty strange to me. Is it that difficult to separate the memory structure of the files from the front-end that displays it in the sideview? |
True. I also now see that Keith Hall has posted the same link about three years earlier. |
Is there a chance for this to get added in ST4? |
Here is a usecase for descending order: Rails (a web framework written in Ruby) uses database migrations to incrementally migrate DB schema. All migrations are stored inthe same folder ( Would be great to be able to set sorting order either from a right-click menu of the folder or in a |
Bro it's been 8 years just add it already lmao |
I've also been thinking about this for a while. Perhaps it is worth creating a new standard that defines how to sort a directory. I've compiled a few filename ideas:
Any ideas on what the contents of this file would be and what all of the different sorting methods are? The main ones would be:
The secondary ones would be:
References: |
I also see another option, at least for my usecase: a "scroll to top/bottom of the expanded folder" buttons, shown only when the content of the expanded folder doesn't fit into screen. Yet this may be much harder to implement |
I'm upvoting this feature too, especially sort FYI, here's the implementation in vscode: https://github.com/Microsoft/vscode/blob/main/src/vs/base/common/comparers.ts |
Upvoting this issue, When working with large number of files with versioning at this end like |
That might be the case. But it's also rather obvious that the way in which Sublime orders files in the sidebar right now is something that nobody would expect. I mean, what human sorts numbers like this? I understand that there are valid technical reasons for this, but from the perspective of a user, who cares? Either sort it in a more sane way or give people the option to do so. It's not like Sublime is generally stingy with config options. Or that they clutter up an UI somewhere. They're lines in a text file. |
:bump: |
Looking for more flexibility on this as well. I want folders to appear next in front of file names that have the same name. I don't want a folder/file split. To reorganize a tree view is quite a feature when it comes to big projects with many files/folders. Related to this is: #721 |
I'm using Sublime Text as my notepad. Would like to have a "sort by date" feature. Currently, I'm using an insne |
This feature request is now ten years old, and it still is in high demand. Please let us sort the sidebar. |
I'm going to switch to another program. |
@deadhitter1 I also got tired of waiting. I switched to VSCode. It's amazing something this simple was never implemented in SublimeText |
Sorting files in the sidebar by date (ascending / descending) would be fantastic. Even more advanced, sort folders in the sidebar independently of each other.
I understand that there isn't a Sidebar API, so this would either need to be a core feature, or a plugin if a Sidebar API were to be released.
The text was updated successfully, but these errors were encountered: