Bug 500001 - Improve file picker sorting: Custom sorting per directory, option to disable "folders first"
Summary: Improve file picker sorting: Custom sorting per directory, option to disable ...
Status: RESOLVED DUPLICATE of bug 433737
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (other bugs)
Version First Reported In: 6.10.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-13 16:15 UTC by Damglador
Modified: 2025-03-13 04:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damglador 2025-02-13 16:15:56 UTC
SUMMARY
For me, this is a huge usability issue. File dialog in Plasma have the same sorting and view settings for everything, some of them can't even be changed, like that folders always come first. I have 176 items in My ~/Downloads, and 14 of them are folders. Each time I have to pick something from ~/Downloads I have to sort by date and then scroll past the pile of folders, and that wastes a lot of time. The grouping also is missing, but that's not a big deal.

I can also just drag and drop the file I want to pick on the file picker, but that also wastes a lot of time, opening Dolphin if it's not opened, going to the folder I need, finding the file, drag and dropping it into the file picker.

STEPS TO REPRODUCE
Python script to call file picker, requires pyqt6:
import sys
from PyQt6.QtWidgets import QApplication, QFileDialog, QWidget
app = QApplication([])
window = QWidget()
file_path = QFileDialog.getOpenFileNames(window, "Select a file")
print("Select a file:", file_path)
if not file_path or file_path == "":
    print("No folder selected, exiting.")
    sys.exit()
del app
sys.exit()

OBSERVED RESULT
Every folder uses the same sorting, even Downloads, which requires custom sorting the most.
There is no option to disable folders showing first.

EXPECTED RESULT
I expect file picker to inherit sorting and view options from Dolphin, or at least use custom sorting for Downloads for easier time picking files from there.
I expect an option to disable folders showing first in the view.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I know taking view options from Dolphin isn't a universal solution, but it's something. Another good option would be just to customize view options per-folder in file picker itself and store the preferences somewhere.
Comment 1 John Kizer 2025-03-13 04:36:05 UTC
Hi - the option to disable sorting Folders first already exists, and can be accessed by clicking the "Sorting" button in the top toolbar of the Open File dialog.

Merging this in with the existing feature request for sorting settings to be synced with Dolphin.

Thanks!

*** This bug has been marked as a duplicate of bug 433737 ***