Repository navigation
fix(preview): preserve words, RTF emoji and raw H.264 playback - #1901
Conversation
Keep rendered document rows bounded at word boundaries, combine RTF UTF-16 code units through the standard decoder, and reuse shared media classification across preview callers. Retain timestamp-less raw video in navigation and make the existing handoff and Properties fixtures establish their input preconditions explicitly. Refs #1861
Raise zstd to 0.14.3 and regenerate the lockfile with zstd-safe 8.2.0 and zstd-sys 2.1.2. These resolve RUSTSEC-2026-0391, RUSTSEC-2026-0398, RUSTSEC-2026-0403 and RUSTSEC-2026-0410 without adding audit exceptions. Unblock the dependency policy check for #1901; retain all other dependencies, preview changes and owner-added visual evidence.
CI dependency fixPushed
This resolves RUSTSEC-2026-0391, RUSTSEC-2026-0398, RUSTSEC-2026-0403 and RUSTSEC-2026-0410. Cargo regenerated Images preserved: the PR description is byte-identical to the saved owner-edited version, all ten attachment URLs remain, and all eleven original local captures (including the MP4 control) passed SHA-256 verification. This comment does not edit the description or its image section. Local validationDependency changes affect ZIP handling and Omarchy update-database decoding, so validation escalated to the complete pinned Rust and GUI selections, followed by scoped failure diagnosis only:
CI: all executed checks are green on |
Review and cleanupMerged Review against the description and #1861
Fixes pushed
Tests removed: none. Every added or changed test can catch a real regression. The keyboard-dispatch playback change and the Properties menu scroll set up preconditions the tests depend on; they don't weaken any assertion. Comment audit: the PR adds two comments, the once-per-line scan in Validation
Follow-ups outside this PR
CI: every check passed at 04:56 UTC (the QA scenarios job is skipped by the PR workflow). |
Description
Fix all three preview problems in #1861:
.h264through the shared filename classifier so preview, navigation, Properties and printing agree. Reuse the existing byte-content guards and sandboxed decoder, and retain valid videos with dimensions but no reported duration in navigation.The H.264 fast path avoids the platform MIME lookup and redundant uncertain-type query; no additional file reads or decoder implementation are introduced. Existing validation fixtures now establish playback for each keymap and scroll a long context menu before clicking Properties, without removing their assertions or pointer route.
Initial full local runs had environment-sensitive/baseline failures; the final scoped reruns pass. CI's dependency audit is currently blocked by four pre-existing advisories in the unchanged zstd dependency chain; no exceptions have been added. The exact validation history and performance limitations are recorded in #1861. Opened ready for review at the owner's request.
Visual evidence
Before:





After:





How to test
{\rtf1\ansi\uc1 A [\u-10179?\u-8704?] B}asemoji.rtfand preview it with an emoji-capable font.ffmpeg -f lavfi -i testsrc2=size=320x180:rate=24:duration=3 -c:v libx264 -pix_fmt yuv420p -an alpha.h264, and repeat asbeta.h264. Preview one, step to the next video, and open Properties with Alt+Enter. Also check that plain text namednotes.h264still previews as text.Expected result: ordinary words are not split across virtual rows; the RTF text is
A [😀] B; both raw streams display video, participate in navigation and show source dimensions in Properties. Misnamed text is not handed to the media decoder.Related issue
Closes #1861