Skip to content

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 06:52
· 33 commits to master since this release
322bec6

Performance

  • Hover UI Thread Optimization (email_plugin.py):
    • Replaced full-buffer self.view.find_by_selector() scans on hover with localized scope extraction via self.view.extract_scope(point).
    • Eliminates UI thread lag and frame drops when hovering over Base64 blocks or timestamps in large .eml files.

Added

  • Dynamic Image MIME Detection for Hover Previews (email_plugin.py):
    • Implemented detect_image_mime(raw_bytes, headers) to dynamically identify image types from magic bytes (image/png, image/jpeg, image/gif, image/webp, image/bmp, image/x-icon).
    • Added fallback inspection of the enclosing MIME part's Content-Type header (e.g. image/svg+xml) before falling back to image/jpeg.
    • Replaced hardcoded image/jpeg in hover_base64 so inline hover previews render correctly across all supported image formats.
  • Unit Tests for Image MIME Detection (tests/test_plugin.py):
    • Added test cases in TestEmailPlugin.test_detect_image_mime verifying PNG, JPEG, GIF87a/GIF89a, WebP, BMP, ICO, header fallback, and default fallback.
  • Multi-Format Image Attachments Test Fixture (tests/fixtures/image_formats.eml):
    • Added test fixture with valid Base64 payloads across PNG, JPEG, GIF, WebP, and BMP for manual hover verification and automated parsing tests.

Changed

  • Task Backlog Tracking (TODO.md, ROADMAP.md):
    • Marked "Hover UI Thread Optimization" and "Dynamic Image MIME Detection" as completed.
    • Removed "Base64 Image Export" and "Decode Base64 in New View" popup action link goals in favor of direct in-place decoding and command palette export.