Repository navigation
feat: add image, video and file blocks, web images and an image viewer - #17
Merged
Merged
Conversation
- Blocks: image, video (audio plays as a bar) and file blocks store a file id; width is set by dragging the edges and stored on the block; the caption is the block's own inline text. File blocks show icon, name and size and save a copy on click. - Insert from the slash menu, by pasting a screenshot or by dropping files; formats that cannot be decoded fall back to a file block. Large files stream into the workspace in the background with progress and cancel; the insertion point follows later edits. - A PDF dropped into a page imports a non-independent paper and inserts a link block to it in the same record. - Attachments are served by a labloom-file:// protocol with range reads, shared by reference through link refs and collected when unreferenced; staged files are protected until their edit commits. - Web images: pasting an image URL, dragging an image from a page or pasting HTML with images downloads them; a failed download leaves the URL as a link with a notice. - Paste picks clipboard bitmaps over table text, keeps text and images from mixed HTML, and treats a copied URL as a URL. Pasted outside anchors become plain text; the app's own links survive partial copy and cut. Ctrl/Cmd+click opens a link. - Image viewer: click opens it full-window, wheel zoom, drag, arrow keys through the page's images, Esc closes; images are never upscaled to fit. - Dropping only takes over external drags; in-editor text drags are left to the editor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
file id; width is set by dragging the edges and stored on the block;
the caption is the block's own inline text. File blocks show icon,
name and size and save a copy on click.
files; formats that cannot be decoded fall back to a file block.
Large files stream into the workspace in the background with progress
and cancel; the insertion point follows later edits.
a link block to it in the same record.
shared by reference through link refs and collected when unreferenced;
staged files are protected until their edit commits.
pasting HTML with images downloads them; a failed download leaves the
URL as a link with a notice.
from mixed HTML, and treats a copied URL as a URL. Pasted outside
anchors become plain text; the app's own links survive partial copy
and cut. Ctrl/Cmd+click opens a link.
through the page's images, Esc closes; images are never upscaled to fit.
to the editor.
🤖 Generated with Claude Code