dotViewer 1.5.1
Added
- ⌘A selects the previewed file's contents, and ⌘C copies them — in the ordinary
SpaceQuick Look preview, not only in the ⌥Space panel. Previously both went to Finder instead: ⌘A selected every file in the window and ⌘C copied the file itself, while the person was plainly looking at its contents.- The selection covers the content view only. A document-wide select-all would also take the file-type badge, the size and the toast, none of which is the file's contents.
- Copying honours Include Line Numbers in Copy: the page builds the text with the same helpers and the same preference the mouse and header-button paths use, then hands it to the app, which writes the pasteboard. The page cannot write it itself — a Quick Look preview never receives a user gesture, and WebKit refuses both
execCommand('copy')and the Clipboard API without one (see KI-009). The text travels over the existing nonce-gated loopback channel, which stays bound to127.0.0.1. - ⌘C is only intercepted after a ⌘A in the preview. Without that, copying a file in Finder would silently stop working whenever a preview happened to be open — a worse regression than the feature is worth.
- While the search bar is open, ⌘A keeps selecting the query text.
Fixed
- Explained the permission failure that could not be diagnosed from the UI. macOS ties Accessibility and Automation grants to an app's code signature, not its name or location. Two differently signed copies of dotViewer share a bundle identifier but are separate subjects to TCC, and System Settings lists them under a single name — so the switch beside "dotViewer" can be on while belonging to the other copy. The app then reported "⌘F search needs Accessibility access" against a ticked checkbox, granting from the prompt changed nothing, and ⌘F stopped working with no way to find out why.
- Both permission cards now detect this case rather than guessing at it: the app records when the event tap has genuinely started, so a later launch can tell "never granted" apart from "granted, then invalidated". When it knows the grant was invalidated it says so directly instead of hiding the explanation behind a disclosure.
- The remedy given is the one that actually works. Two differently signed copies share a bundle identifier but are separate subjects to TCC, and System Settings lists them under a single name — so toggling that row, or removing and re-adding it, can rebind the wrong copy. The cards now explain this and offer a one-click copy of
tccutil reset Accessibility com.stianlars1.dotViewer(orAppleEventsfor Finder access), which clears every record for the app so a single fresh grant binds correctly.
Changed
- The preview now subscribes to the loopback bridge whenever it is available, rather than only when Show Find in Preview is switched on. Selecting and copying a file has nothing to do with searching it, and the old condition would have left ⌘A dead for everyone on the default settings. ⌘F itself is still gated on the setting — entering search mode with no search bar on screen would swallow keystrokes with nothing to show for it.
Notes
-
No change to preview rendering or highlighting. If ⌘F stopped working after installing 1.5.0, this release explains why, but the fix remains manual and is best done from Terminal:
tccutil reset Accessibility com.stianlars1.dotViewerThen reopen dotViewer and press Grant Access. Only users who had also run a differently signed build of dotViewer are affected; a normal upgrade from an earlier release keeps its permissions.
Installation
- Download dotViewer-1.5.1.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