https://bugs.kde.org/show_bug.cgi?id=502692

cwo <cwo....@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Desktop Filter does not do  |Filename filter UX is
                   |anything with               |confusing as it's not clear
                   |"Filter->Files" set to      |setting mimetypes is also
                   |"Show matching" or "Hide    |required
                   |matching"                   |
             Status|REPORTED                    |CONFIRMED
                 CC|                            |cwo....@posteo.net,
                   |                            |h...@kde.org
            Version|6.0.0                       |6.3.4
           Keywords|regression                  |
   Version Fixed In|6.4.0                       |
          Component|"Manage Desktop and Panels" |Desktop icons & Folder View
                   |window                      |widget
      Latest Commit|https://invent.kde.org/plas |
                   |ma/plasma-desktop/-/commit/ |
                   |23bfa96fc6fad43f85803d5ee9d |
                   |75f5594e85c27               |
     Ever confirmed|0                           |1

--- Comment #2 from cwo <cwo....@posteo.net> ---
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?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to