-
-
Notifications
You must be signed in to change notification settings - Fork 124
Update FileBrowser.cs #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
added ItemPassesFilter delegate -- nicer than extensions :)
SimpleFileBrowser is awesome, thanks! |
I get the idea behind this PR but this isn't something I've seen on any other file browser before. What kind of use-case prompted you to create this feature? |
Well, I needed SFB to filter for multiple extensions (e.g. I think it's high value when software offers flexibility when it comes at low or no cost. |
You can define multiple extensions in a single filter. Do you mean an extension |
No, I'm talking about making a filter that accepts, say, files that only end with ".tar.zip". The current code only looks at the rightmost extension. I'm not getting your resistance around a simple extension to the filter code that makes it possible to perform arbitrary filtering. |
When we follow your way, the issue will still be there for Filter constructors that don't take a ItemPassesFilter parameter (e.g. Regardless, thanks for the PR! |
What about someone wanting your use a regex? Your resistance is so strange here -- as if you want your work to be less flexible. There is literally zero downside from adding this -- you are an engineer, correct? |
Tell me about other file browser APIs that let you use a callback function as a callback, tell me about practical use-cases of this feature other than theoretical "you can regex with it" instead of trying to insult me. Just because you've created a feature that you think is useful doesn't make that feature actually useful. Prove me that it's useful. I won't be adding useless features to my plugin. And I take my previous compliment back -- since you're so insistent on being mean -- I won't be thanking you for this PR. |
added ItemPassesFilter delegate -- nicer than extensions :)