Permalink
Switch branches/tags
Commits on Sep 2, 2012
  1. Add support for thumbnail generation.

    nickhutchinson committed Sep 2, 2012
    According to the (awful) documentation in the QuickLook header files, for this to work the QLNeedsToBeRunInMainThread Info.plist key has to be set to true.
    
    Thumbnails are badged according to the following heuristic:
    - If the file has an extension of < 10 characters, use that.
    - If the file has a well-known MIME type (determined by file(1)), look up its corresponding badge string and use that.
    - If the file has no extension, but a well-known filename (e.g. "Makefile"), look up its corresponding badge string and use that.
    - Is the file executable? If so, assume it's a script, and badge it with "SCRIPT".
    - Otherwise, badge it with "TEXT".
    
    This heuristic could probably be improved. Currently the mappings of well-known filenames and MIME-types to badge strings are hard-coded in GenerateThumbnailForURL.m. Perhaps these should be moved into an external plist.
  2. Make preview generation more robust; stop previewing binary files.

    nickhutchinson committed Sep 2, 2012
    * Check candidate files with file(1) to decide whether they are text or binary, and to determine their encoding.
    * Upgrade to ARC (note this drops support for 10.6 32-bit and below)
    * Use QLPreviewSetURLRepresentation() instead of reading the entire file (!) with -[stringWithContentsOfURL].
    * Add extra compiler warning flags
    
    Note that the inclusion of BSD licensed RegexKitLite will require a credit.
Commits on May 13, 2012
  1. update to 1.2

    whomwah committed May 13, 2012
Commits on May 12, 2012
  1. Merge pull request #8 from roblourens/master

    whomwah committed May 12, 2012
    Change data display type from HTML to PlainText
  2. Merge pull request #9 from twe4ked/patch-1

    whomwah committed May 12, 2012
    Clean up installation instructions
Commits on May 2, 2012
Commits on Jan 13, 2012
  1. Change data display type to HTML rather than PlainText

    roblourens committed Jan 13, 2012
    I like the way it looks better. Also, fixes UTF8 display issue.
Commits on Oct 28, 2011
  1. update README with links

    whomwah committed Oct 28, 2011
  2. update README

    whomwah committed Oct 28, 2011
  3. README now markdown

    whomwah committed Oct 28, 2011
  4. Merge pull request #4 from roblourens/master

    whomwah committed Oct 28, 2011
    Now works with ISO encoded files as well
  5. merge

    roblourens committed Oct 28, 2011
Commits on Oct 17, 2011
  1. Merge branch 'patch-1' of https://github.com/aviflax/qlstephen into a…

    whomwah committed Oct 17, 2011
    …viflax-patch-1
    
    Conflicts:
    	README
  2. upgrade xcode project

    whomwah committed Oct 17, 2011
    remove redundent file
Commits on Oct 13, 2011
  1. Now works with ISO encoded files as well

    roblourens committed Oct 13, 2011
    Originally, worked only with ASCII and Unicode files. Now tries to
    determine the file encoding itself. If it can't, as is the case with my
    ISO-encoded test files, it guesses that the encoding is ISO Latin 1,
    which is a likely guess. It now will work with these files.
Commits on Oct 4, 2011
  1. update readme

    whomwah committed Oct 4, 2011
Commits on Jun 5, 2011
Commits on Jan 14, 2009
  1. first commit

    whomwah committed Jan 14, 2009