on 2013-05-27 10:29 LuKreme wrote
QLStephen allows you to blacklist some extensions, blacklist some directories, 
and whitelist specific filenames. It does not, as far as I can see, allow you 
to add extensions which is what I need to do.

i see what you mean; the whitelist is essentially there to override the blacklists in special cases; it doesn't whitelist extensions because it considers every extension not blacklisted nor handled by another QL plugin to be text

e.g. xyz.gibberish is Quicklooked as if it were text; this might seem to go too far, but i haven't yet run into any of the pathological cases described in the issues

that said, the code is pretty simple; in URLChecker.m, you could obvert the function of the extension blacklist to be a whitelist by changing line 31 to "return true;", moving lines 24-32 below the following block, and changing line 47 to "return false;"

this would *only* recognize the given extensions as text (in addition to those extensions handled by other QL plug-ins)


_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to