SUMMARY Desktop Filter does not work with "Filter->Files" set to "Show matching" or "Hide matching" STEPS TO REPRODUCE 1. From "Desktop Folder Settings", set Location to "Desktop folder" 2. Set filter to "Hide matching" 3. Enter a filename pattern, e.g. "*.png" OBSERVED RESULT Files matching "*.png" are still shown EXPECTED RESULT Files matching "*.png" should be hidden SOFTWARE/OS VERSIONS Windows: macOS: (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Fedora Kinoite 41 KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.12.0 Qt Version: 6.8.2 ADDITIONAL INFORMATION
This was just fixed the other day for Plasma 6.4.0, in fact!
That commit only affects the buttons at the bottom of the list that allow the user to quickly check and uncheck all the items. It is somewhat related, because the Filter functionality always requires the mimetypes to be set, even if you just want to filter by filename. So to hide all *.png files, you need to select "Hide matching", set the filename filter to "*.png" and check the image/png mimetype in the ListView. Or select all of them, really, with slightly different behavior. The conditions are AIUI: 1) "Hide all" selected, "File name pattern" set to "*.png", no mimetypes checked in the ListView: Hides all files matching "*.png" that have no mimetype at all. Probably useless 2) "Hide all" selected, "File name pattern" empty, "image/png" checked in the ListView: Hides all files with png mimetype, regardless of whether they have a ".png" extension or not 3) "Hide all" selected, "File name pattern" set to "*.png", "image/png" checked in the ListView: Hides all files with png mimetype and a ".png" extension 4) "Hide all" selected, "File name pattern" set to "*.png", all mimetypes checked in the ListView: Hides all files with the extension ".png" even if it's a different file type (but not png-format files with a different extension) 5) "Hide all" selected, "File name pattern" empty, all mimetypes checked in the ListView: Hides everything no matter the type and name It's rather flexible, but non-trivial to understand and the likely most common thing that people want (4) is somewhat opaque. Making it work more like users would expect might be non-trivial, but we could at least help the user a bit by showing an InlineMessage if "Hide all" or "Show all" are selected and a filter pattern is set. I'm not sure if the message should always show in that case, show only if there's one or more unchecked mimetypes, or only if all mimetypes are unchecked. I'd lean toward the second, and maybe a text like "The file name pattern will only apply to files of the selected file types" and maybe a button "Apply to All Files" that checks every type (like the button below the ListView does). What do you think, Nate?
(wish we had an edit feature) If the filename is empty, it only seems to match files with no name, which is pretty useless - probably needs an InlineMessage as well.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2987