-
Hello, there! This is a bit of an interesting finding; it seems that It seems like it would be good to make FileFilters case-insensitive for usability. What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
We're just following platform conventions. On Windows/macOS the file dialogs are case insensitive, but so are their default file systems. So, the only way for this to work would be to pass multiple filters with all possible mixed case combinations (or perhaps just two: lower and uppercase). This is admittedly ugly, but you can already do this yourself. |
Beta Was this translation helpful? Give feedback.
-
Actually, looking at the documentation your pattern could be: Not sure if I should do this automatically. Would be more discoverable, but then I'd need to go into converting these syntaxes (a bit of which I'm already doing to support macOS). The way it's currently done is (for the most part): "this supports the patterns allowed by the OS, if you want anything fancy, do a per OS pattern." But I'll think some more about it. |
Beta Was this translation helpful? Give feedback.
-
Latest version adds "support" for character classes to all platforms. This means you can use the pattern
I did not add a non-default case-insensitive option to Linux. Making unicode character classes case-insensitive would be error prone, and a source of probable bugs. I'd like to keep those at a minimum. |
Beta Was this translation helpful? Give feedback.
-
Ah, very cool - thanks a lot for implementing this! Sorry for the late reply; I'll see about implementing the above pattern in my code to have case-insensitive filename patterns. |
Beta Was this translation helpful? Give feedback.
-
Finally got round to implementing this, hopefully it doesn't introduce too many bugs. |
Beta Was this translation helpful? Give feedback.
Latest version adds "support" for character classes to all platforms.
This means you can use the pattern
*.[Tt][Tt][Ff]
portably across all platforms:*.[Tt][Tt][Ff]
is a case-insensitive match for files with aTTF
extension;*.TTF
, which does the same;TTF
, same effect.I did not add a non-default case-insensitive option to Linux. Making unicode character classes case-insensitive would be error prone, and a source of probable bugs. I'd like to keep those at a minimum.