Closed GoogleCodeExporter closed 8 years ago
I'll accept the bug and do a workaround, but this is really an Apple bug (and
I've reported it long ago). They
generate a full QL preview any time you highlight a file in column view, but
they never use it, not even if you
subsequently *ask* for a QL preview of the file. FYI, my thumbnail generator
only uses a small portion of the file
for good performance. Unfortunately, this bad behavior in the Finder makes me
look sloppy regardless. :-(
Original comment by n8gray@gmail.com
on 5 Mar 2008 at 7:39
> FYI, my thumbnail generator only uses a small portion of the file
for good performance
This sounded a little odd to me, so I just checked the source - and you are
quite right! Except the problem is actually
with SQL dumps, which can use very, very long lines indeed.
So:
filter=(head -n 100)
Actually reads in the entirety of the file, which can be multi-megabytes.
So perhaps this could be improved by using:
filter=(head -n 100 | head -c 10000)
...to use up to 100 lines and only up to 10k of text?
(Incidentally: This still only affects the thumbnail, by the look of it, so
perhaps it's worth putting a higher limit on full
quicklooks - say 5,000 lines and 500k? Just to avoid death...)
Original comment by rowanb@gmail.com
on 5 Mar 2008 at 1:20
That thumbnail mod sounds fine. I think I'll make the limit on full previews
an opt-in setting. I sometimes QL
plist files that are a few MB long.
Original comment by n8gray@gmail.com
on 11 Mar 2008 at 8:52
This is fixed in SVN. You can use the maxFileSize to specify the maximum file
size in bytes.
Original comment by n8gray@gmail.com
on 27 Mar 2008 at 1:07
Original issue reported on code.google.com by
rowanb@gmail.com
on 4 Mar 2008 at 3:31