Open battaglia01 opened 3 years ago
Hey @battaglia01, thanks for reporting. You have a valid point here.
Unfortunately, we are swamped at the moment, so we won't be able to address it in several months, perhaps a year. So, if you would like to see this fixed in the short term, we'd really appreciate your help with it. Otherwise, you'll have to wait for us.
I'm sure this is a one line fix - where is the relevant sorting routine stored?
On Wed, May 5, 2021, 4:42 PM Carlos Cordoba @.***> wrote:
Hey @battaglia01 https://github.com/battaglia01, thanks for reporting. You have a valid point here.
Unfortunately, we are swamped at the moment, so we won't be able to address it in several months, perhaps a year. So, if you would like to see this fixed in the short term, we'd really appreciate your help with it. Otherwise, you'll have to wait for us.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/15512#issuecomment-832993313, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZFMQP2EYPUGXRUGVD7FLTMGUTNANCNFSM44D5HX2Q .
Er, this is not at all easy to do, and is a much deeper problem with Qt's QFileSystemModel that many have talked about. See also:
https://forum.qt.io/topic/113138/sorting-folders-first-qfilesystemmodel-with-directory-filter https://stackoverflow.com/questions/10789284/qfilesystemmodel-sorting-dirsfirst https://stackoverflow.com/questions/20006775/how-to-sort-folders-above-files-with-qsortfilterproxymodel
Maybe if someone wants to do this, they can start there, but sheesh.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
When sorting by name, directories are all mixed in with everything by name, which is different from the way most OS's do it, which is to have all the directories at the top (sorted by name) and then all files (also sorted by name). It may be best if this were some kind of setting you could change, since some people may also want it the way it is, but it would be nice if the directory-first setting were available somehow.
The way things are now is also kind of an eye strain because .py files, .pyc files, and folders are all small black icons which are difficult to differentiate from one another at a glance, although you do have the little ">" there to expand folders.
What steps reproduce the problem?
What is the expected output? What do you see instead?
Versions
Dependencies