Skip to content

feat: add image, video and file blocks, web images and an image viewer - #17

Merged
ljm12914 merged 1 commit into
mainfrom
refactor/media
Nov 25, 2026
Merged

ljm12914 merged 1 commit into
mainfrom
refactor/media

Conversation

@ljm12914

Copy link
Copy Markdown
Member
  • 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.

🤖 Generated with Claude Code

- 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>
@ljm12914
ljm12914 merged commit 132eac3 into main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant