Skip to content

MD Viewer 0.1.1

Choose a tag to compare

@n4od n4od released this 10 Nov 23:04
· 58 commits to main since this release

A maintenance release: three things you can feel, and one build warning that went away.

What's new

Retry when a file disappears. If an editor deletes and rewrites a file mid-save, the viewer now keeps the document on screen, names the file it could not read, and offers Retry — instead of blanking the reading pane and leaving you to reopen it.

Recent files that stay honest. Entries whose file no longer exists are pruned at start-up, and the "Recently opened" list has a Clear action. The existence check runs in Rust (filter_existing), so a moved or deleted file simply disappears rather than failing when you click it.

Command line flags. Both the installed and portable executables accept:

Flag Effect
--version, -V prints mdviewer 0.1.1
--help, -h prints usage
--register-default registers that executable as a .md handler and refreshes the shell — no window, no dialog

--register-default is the one to call from a script: a Windows Sandbox .wsb logon command, a CI smoke test, or an unattended setup. Exit code 0 on success, 1 on failure, and the output appears even though the app ships without a console window.

& "$env:LOCALAPPDATA\MD Viewer\mdviewer.exe" --register-default
if ($LASTEXITCODE -ne 0) { throw 'association registration failed' }

Identifier cleanup. The bundle identifier is now mdviewer (was dev.mdviewer.app), removing the build warning about the .app suffix colliding with macOS bundles. Side effect worth knowing: WebView2's data directory moves to %LOCALAPPDATA%\mdviewer, so the stored theme and recent-files list reset once on the next run.

Install

Per-user, no admin:

  • MD.Viewer_0.1.1_x64-setup.exe — installs to %LOCALAPPDATA%\MD Viewer, registers the Markdown associations and adds a Start-menu entry.
  • MD.Viewer_0.1.1_x64-portable.exe — run it from anywhere; register it from the empty state (Set as default for .md files) if you want the association.

Requirements and limits:

  • Windows 10/11 x64, with the WebView2 runtime (preinstalled on Windows 11; the installer fetches it when missing).
  • If another app already owns .md, confirm MD Viewer once: right-click a .md file → Open with → Choose another app → MD Viewer → Always. Windows keeps that final choice; nothing can set it silently.
  • Read-only by design, and files larger than 16 MB are truncated with a notice.

Verify what you downloaded against SHA256SUMS-v0.1.1.txt:

Get-FileHash ".\MD.Viewer_0.1.1_x64-setup.exe" -Algorithm SHA256

Full details in CHANGELOG.md; planned work in ROADMAP.md.