dotViewer 1.5.0
Added
- ⌥Space preview panel — dotViewer's own preview window, opened with
⌥Spaceon the file selected in Finder.- Works on any text file, not only the ones Quick Look refuses.
- Built for the files macOS will never route to a Quick Look extension:
.tsresolves topublic.mpeg-2-transport-stream, a system-declared type conforming topublic.movie, so no third-party extension can claim it. Files with unregistered extensions get dynamic (dyn.*) UTIs and are never routed either. - Same rendering as Quick Look — tree-sitter highlighting, themes, fonts, word wrap, window sizing all follow existing settings.
⌘Fsearch,Escand⌘Wto close, and click-away to dismiss.- Links in previews open in the default browser — an affordance Quick Look cannot offer, since
window.openis blocked inside quicklookd's web view (KI-012). Other URL schemes are refused; a previewed file is untrusted input.
- Settings → "Preview with ⌥Space in Finder" with separate status rows for the two permissions the feature needs: Accessibility (to receive the shortcut) and Automation (to ask Finder which file is selected). Neither is requested at launch.
Changed
Spaceis never intercepted. Native Quick Look continues to handle every file it already handles; the panel is purely additive.- Extracted the preview pipeline into
Shared/PreviewContentBuilderso the Quick Look extension and the ⌥Space panel render through one code path instead of two copies of the routing, caching and highlighting logic. HighlightXPCis now embedded in the host app as well as the Quick Look extension, so the panel can reach the highlighting service.- Bumped the app version to
1.5.0/ build7.
Fixed
- The preview panel's link handling never ran: the
WKNavigationDelegatemethod only nearly matched the optional protocol requirement (a missing@MainActoron thedecisionHandler), so WebKit never called it.
Notes
- The host app is not sandboxed. A sandboxed process cannot hold Accessibility permission, which the ⌘F and ⌥Space features require. The Quick Look extensions remain sandboxed. Distribution is Developer ID (DMG + Homebrew); the Mac App Store build has been dropped.
Installation
- Download dotViewer-1.5.0.dmg
- Open the DMG and drag dotViewer to Applications
- Launch dotViewer once to register the Quick Look extensions
- Press Space on any code file in Finder
Requirements: macOS 15.0 or later
Signed and notarized with Apple Developer ID