[Feature Request] Case Insensitivity in TOpenDialog
Original Reporter info from Mantis: fedkad
-
Reporter name: Fedon Kadifeli
Original Reporter info from Mantis: fedkad
- Reporter name: Fedon Kadifeli
Description:
A flag may be added to TOpenDialog in Linux so it will behave similar to Windows while listing files with extensions which differ only in case.
Steps to reproduce:
While porting a Windows application to Linux, I noticed that a filter like "Text File (.TXT)|.txt" in the TOpenDialog will show only the file names ending with .txt, and not files ending with .TXT, .Txt, .tXt, .txT, .TXt, etc.
A method to show matching file names ending with all lower and upper case combinations of .txt is needed in Linux. (For example, in LibreOffice Open File dialog, if you select ODF Text Document, the file list will show all the files like this: a.odt, a.ODT, a.OdT, a.oDt, and so on.)
A option something like "ofCaseInsensitiveFilter" in the TOpenDialog dialog may be added to allow this.
Currently, the only solution is to list all combinations in Filter. For a three-letter "extension" we need 8 of them:
Text File (.TXT)|.txt;.txT;.tXt;.tXT;.Txt;.TxT;.TXt;*.TXT
which is ugly.
Mantis conversion info:
- Mantis ID: 33846
- OS: Ubuntu Linux
- OS Build: 18.04
- Build: 58210
- Platform: x86_64-linux-gtk2
- Version: 1.9 (SVN)
- Monitored by: » fedkad (Fedon Kadifeli)