Repository navigation
Open files in Codevisor's own lightbox instead of Quick Look - #1470
Merged
Merged
Conversation
Clicking an image in a chat on macOS could show Quick Look's "No items selected", because the shared system panel was claimed by whichever text view had focus. Files now open in a viewer Codevisor owns: an overlay over the window on macOS and a sheet on iOS. It is the file viewer in a read-only mode, so images, video, markdown, code and documents all open in it, and it pages through the files of one message or the composer. - Links to files open in the lightbox; Command-click opens a tab, and right-click or long-press offers Preview, Open in New Tab, Download, Save As, Copy and Share. - Files with no useful preview show that menu on click instead. - Bot chats have no tabs, so they never offer Open in New Tab. - Images zoom by pinch, double-click and smart magnify, and pan by drag. - Download on macOS shows its progress and result in a popover, on the lightbox's Download button or where the menu was opened. - Attachments that have not been sent yet can be previewed too. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Clicking an image in a chat on macOS sometimes showed Quick Look's "No items selected". The system Quick Look panel is shared, and it was claimed by whichever text view had focus (usually the composer), because clicking an image does not move focus.
What changed
Files now open in a viewer Codevisor owns, in place of Quick Look: an overlay over the window on macOS and a sheet on iOS. It is the existing file viewer in a read-only mode, so there is one viewer with two presentations (tab and lightbox).
Testing
bun run checkpasses, with new unit tests for file routing, menus, paging and preview kinds.Not tried: PDFs, files on a remote machine, bot chats on iOS, and composer attachments in the running macOS app.
🤖 Generated with Claude Code