GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - inquinity/QLTextView: QuickLook Text Viewer for multiple files types

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
QLTextView.xcodeproj
QLTextView.xcodeproj
 
 
QLTextView
QLTextView
 
 
QLTextViewExtension
QLTextViewExtension
 
 
docs
docs
 
 
icon-preview
icon-preview
 
 
scripts
scripts
 
 
test
test
 
 
.gitignore
.gitignore
 
 
ADD-EXTENSION.md
ADD-EXTENSION.md
 
 
LICENSE
LICENSE
 
 
QLTextView-Plan.md
QLTextView-Plan.md
 
 
README.md
README.md
 
 
justfile
justfile
 
 

Repository files navigation

QLTextView

QuickLook Text Viewer for multiple files types

Installation

brew install --cask inquinity/tap/qltextview

Or grab the signed, notarized DMG from the releases page.

After installing, enable the extension: System Settings → General → Login Items & Extensions → Quick Look → QLTextView.

Releasing

just release then just publish — see docs/RELEASE-AUTOMATION.md.

Known limitations

.ts files are not previewed

TypeScript source files (.ts) collide with MPEG-2 transport-stream video, which macOS binds to the .ts extension system-wide as public.mpeg-2-transport-stream. Quick Look then routes the file to the legacy /System/Library/QuickLook/Movie.qlgenerator, which claims the parent type public.movie. That generator wins selection over our app extension, fails to produce a preview for what is actually text, and Quick Look does not fall through to other candidates — so the file shows the generic "no preview" panel.

There is no clean third-party workaround:

  • A third-party app cannot override the system's .ts → public.mpeg-2-transport-stream UTI binding. We declare .ts in the host app's UTExportedTypeDeclarations, but mdls confirms the file still resolves to public.mpeg-2-transport-stream.
  • Declaring public.mpeg-2-transport-stream in the extension's QLSupportedContentTypes doesn't help either — Movie.qlgenerator beats our app extension on the routing.
  • Disabling Movie.qlgenerator system-wide would require disabling SIP and would break Quick Look for genuine video files.

The relevant declarations are left in place (public.mpeg-2-transport-stream in QLTextViewExtension/Info.plist, ts in the UTExportedTypeDeclarations filename-extension list, and ts in TextDetection.defaultExtensions) so that if Apple retires Movie.qlgenerator — it has long been deprecated — .ts previews will start working without a code change.

File size cap

Files larger than 100 KB are previewed truncated, ending with a [truncated — file exceeds 100 KB preview limit] notice. The cap is TextDetection.defaultMaxBytes.

About

QuickLook Text Viewer for multiple files types

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.