Skip to content
A QuickLook plugin that lets you view plain text files without a file extension
Objective-C C
Find file
Pull request Compare This branch is 53 commits behind whomwah:master.
Latest commit c6cf191 Sep 2, 2012 @nickhutchinson Add support for thumbnail generation.
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.

README.md

QuicklookStephen

QLStephen is a QuickLook plugin that lets you view plain text files without a file extension. Files like:

README
INSTALL
CapFile
CHANGELOG
etc...

Download

You can download the lastest version from the Downloads section in the QLStephen github reposistory. Or you can just complile it yourself.

Install

Pre-compiled

If you download the plugin via the Downloads section in github for this project, you install via the installer pkg included.

Manually Compile

If you're compliling the project yourself, you just copy the QLStephen.qlgenerator file into the relevant QuickLook folder. If the folder is not present, then you will need to create it first:

  1. If just you want to use this plugin

    /Users/yourusername/Library/QuickLook/

  2. If you want any user on this machine to use plugin

    /Library/QuickLook/

  3. To make OS X load the generator, run in the terminal:

    qlmanage -r

Authors

Original author: Duncan Robertson

Special thanks to the following people for submitting patches:

Contributing

  • Fork the project
  • Send a pull request
  • Don't touch the CHANGELOG, I'll do that when I release a new version
Something went wrong with that request. Please try again.