Skip to content

feat(rust-explorer): HDD I/O stability, Quick Access import, custom icons, views & columns, Inter font, settings UI, and VSync smooth scroll - #325

Open
ixyren wants to merge 9 commits into
Lemxy:mainfrom
ixyren:fix/hdd-io-stability

Conversation

@ixyren

@ixyren ixyren commented Dec 3, 2026

Copy link
Copy Markdown

Note: This branch is stacked on PR #322 (feat/spanish-i18n, commit ed95f85) so all new UI strings ship translated across all 6 languages (ru, en, ja, pt, zh, es).

Summary

Bug Fixes & HDD I/O Stability

  • Spinning HDD safety (rust-explorer, rust-search):
    • Cached physical drive StorageDeviceSeekPenaltyProperty detection per drive slot (jobs.rs) so rotational HDDs are identified once and invalidated on WM_DEVICECHANGE.
    • Skipped automatic background recursive folder_sizes enumeration on spinning HDDs (while allowing SSD calculation when enabled) to prevent disk stalls and USB/SATA disconnects under heavy directory traversal.
    • Serialized background workers (DIRSIZE_TX, PREVIEW_TX, ICON_TX, NAV_ICON_TX, META_TX) to avoid concurrent random-I/O storms.
    • Debounced WM_DEVICECHANGE arrival/removal refreshes (400 ms) and added exponential backoff on rust-search rebuild retries (rebuild_backoff).
  • External file/folder reveal reliability (rust-explorer):
    • Expanded CLI argument parsing (parse_start_args) to support /select,"...", /n,/select, /e,/select, --select=..., and unquoted paths with spaces, selecting files or subfolders inside their parent directory.
    • Implemented IServiceProvider + IShellBrowser::QueryActiveShellView on shellwin::Browser, normalized path comparisons (norm_dir_key), respected SVSI_DESELECTOTHERS, centered revealed items vertically (center_row_smooth / LVM_SCROLL), revealed hidden target items when needed, and handled deferred selection after initial WM_SIZE.
  • Smooth-mode interaction fixes:
    • Guarded WM_MOUSEMOVE (MK_LBUTTON) and OLE DoDragDrop (GetKeyState(VK_LBUTTON) < 0) to prevent accidental item moves on double-click in custom smooth-scroll mode.
    • Raised Tiles (LV_VIEW_ICON) vertical spacing from 68 to 74 px to eliminate the 2 px row overlap flicker.

New Features

  • Windows Quick Access pin importer: Added COM Quick Access enumeration (windows_quick_access_pins), CLI --import-pins, an optional installer toggle in plugin-launcher, and an import button inside Settings UI.
  • Custom icons (desktop.ini & executables/shortcuts): Asynchronous ICON_TX worker resolves custom folder icons (desktop.ini / R+S attributes) and .exe/.lnk/.ico/etc. icons off the UI thread.
  • Quick Access sidebar folder icons: Displays Windows yellow folder icons immediately and upgrades custom desktop.ini icons asynchronously (NAV_ICON_TX / WM_NAV_ICON), toggleable via Settings (pinned_folder_icons).
  • All 8 Explorer view modes + Ctrl+Scroll zoom: Details, List, Tiles, SmallIcons, MediumIcons, LargeIcons, ExtraLargeIcons, and JumboIcons (256) switchable via the View menu, Settings, or Ctrl+MouseWheel.
  • Optional Explorer columns: Toggleable via header right-click or Settings (Date, DateCreated, DateModified, DateAccessed, Type, Size, Dimensions, Attributes), with fast header-only image/video/EXIF dimension & date-taken probing (meta.rs).
  • Embedded Inter font with dynamic system fallback: Bundles Inter.ttf (SIL OFL 1.1) and detects missing glyphs via GetGlyphIndicesW, dynamically rendering unsupported runs in the classic system UI font.
  • Settings UI (settings_ui.rs): Top-right gear button opens a scrollable, live-synchronized Settings window covering Quick Access import, views, columns, typography, animations, appearance/density, custom icons, Quick Access folder icons, and SSD folder sizes.

Visual Polish & Smoothness (Sober Defaults Preserved)

  • All extra visual effects and animations (use_inter, smooth_scroll, anim_folder, anim_tab, zebra, enhanced_hover) default to OFF, keeping stock behavior untouched out of the box.
  • Independent VSync pixel smooth scroll: In Details view, smooth_scroll uses an independent exact-pixel viewport (SCROLL_Y) with a cached offscreen GDI backbuffer (LIST_BACKBUF), DwmFlush() VSync pacing (WM_SMOOTH_TICK), instant exponential ease-out (RATE = 18.0), arbitrary sub-row rest positions (snap_step: None), and synchronized SB_VERT / hit-testing / inline rename / drag-drop.
  • Optional folder-open slide/fade reveal, tab-close collapse animation, row density presets (Compact, Normal, Comfortable), zebra shading, and enhanced hover/selection outlines.

Localization (6 Languages)

  • All new strings in rust-explorer and plugin-launcher (src/install/explorer.rs, src/ui.rs, plugins/rust-explorer/src/*.rs) are translated across all 6 supported WinRust languages (ru, en, ja, pt, zh, es), verified via script scan (286 macro calls scanned, 0 missing).

Verification

  • cargo test -p rust-explorer -p plugin-launcher -p winrust-common: all passing (rust-explorer: 59 passed, 0 failed, 4 ignored; plugin-launcher: 36 passed across 6 test suites; winrust-common: 36 passed).
  • cargo test --manifest-path plugins/rust-search/Cargo.toml: rs: 11 passed, 0 failed, 2 ignored; rs-launcher: 25 passed, 0 failed, 1 ignored.
  • powershell -ExecutionPolicy Bypass -File scripts\build-all.ps1: exited 0, produced target\release\plugin-launcher.exe.

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