dlgs icon indicating copy to clipboard operation
dlgs copied to clipboard

File filters not working on MacOS

Open SolarLune opened this issue 5 years ago • 1 comments

Hello!

I've noticed a couple of issues with MacOS's File() (and by extension FileMulti()) functions' file filtering.

  • The filter argument only works for a single file extension - you can't pass, say, "jpg png" to filter out any non-image files.

  • The extension filter argument MacOS expects (jpg, for example) isn't the same format as what Linux and Windows takes (*.jpg).

I've submitted a PR to resolve these issues - #13. I also expounded on the documentation to give an idea of what a cross-platform filter argument would look like. I just wanted to create an issue here to explain it a bit in case you had some questions or wanted to discuss it a bit.

SolarLune avatar Feb 10 '20 21:02 SolarLune

Yes, filters are messy, not just between OSes but also between Qt and GTK (zenity and qarma). My idea was to follow just one style and to handle internally all cases, but never got to do it.

gen2brain avatar Feb 11 '20 10:02 gen2brain