mdv

Slop Viewermdv, for macOS 15 and later

A file viewer that started with Markdown. It still draws Markdown best, natively and without a web view, and now reads code, config, certificates and raw bytes as well.

Download 0.1 · Apple silicon · 8.3 MB

Works best with Slop Commander, the file manager that opens its files here.

The mdv icon: a page with M and a down arrow
mdv in the GitHub theme showing Harbour notes: a formula for the water level, a flowchart from station readings to a tide table, and a table of tidal constituents, with the folder's files in the sidebar.

Markdown, drawn natively

GitHub-flavored Markdown without a web view: tables, task lists, code in color, math, and Mermaid diagrams that mdv lays out itself.

The sidebar holds the folder's files, the outline, the links and search. Links between files open in tabs, with Back and Forward.

⌘P files, headings, commands · ⌃⌘S sidebar · ? all keys

Screenshots

Code and config

YAML, JSON, Go, Rust, Python, Terraform, SQL and many more, in color with an outline and folds. A Kubernetes file's documents are titled by kind and name.

Minified JSON or XML lays out again with Show Reformatted; the file itself isn't touched.

⌥⇧⌘F reformat · ⌥⌘← ⌥⌘→ fold

A Kubernetes YAML file in the Tokyo Night theme, with its outline in the sidebar: Deployment tide-api, Service tide-api and ConfigMap tide-api-stations.

Certificates and keys, explained

Open a .pem, .crt, .csr, an SSH key or authorized_keys, and mdv says who it's for, who vouches for it, when it runs out and what it may do, each field in plain words.

A chain is drawn from its root, with whether your Mac trusts it and why not. Private keys show their size, never the secret.

⌥⌘U show the source

A certificate chain in the Book theme: root, intermediate and server certificates drawn as three boxes, a note that the Mac doesn't trust the root, and the server certificate's details.

Anything else, as bytes

A file that isn't text opens as a hex dump with its parts named: a PNG's chunks, a SQLite file's pages and tables.

Select bytes to read them as integers, floats or text, search for a pattern, or jump to an offset.

⇧⌘B show bytes · / search

A PNG file's bytes in the Dracula theme, with its chunks in the sidebar: signature, IHDR with width and height, sRGB, eXIf, eleven IDAT chunks and IEND.
More
NameWhat it doesKey
ThemesSixteen, each in light and dark. Slop Commander can follow the one you pick.
DiagramsMermaid flowcharts, sequence, state, class, ER, Gantt, pie, mind maps and git graphs.
TabsPinned tabs, two tabs side by side, and last time's tabs back on the next launch.⌘T
mdvThe command: mdv notes.md, mdv App.java:120, mdv notes.md#usage, mdv ., or piped text, kubectl get deploy x -o yaml | mdv.
Quick LookSpace in Finder shows Markdown, code and JSON in your mdv theme, and other files as bytes.
FocusJust the page, nothing around it.⇧⌘F
Vim keysIf you want them: j k, gg G, / to search, f for link hints.
Code fontSF Mono, JetBrains Mono (it comes with mdv) or any monospaced font on your Mac.

mdv only reads: it never changes the files it shows.

Download

mdv 0.1

macOS 15 or later · Apple silicon · 8.3 MB zip

Download
  1. Unzip it and move mdv to Applications.
  2. It's signed ad hoc, not notarized by Apple, so macOS stops the first launch. Clear the download flag:
    xattr -dr com.apple.quarantine /Applications/mdv.app
    or open it once, then choose Open Anyway in System Settings › Privacy & Security.
  3. For the mdv command, link it from a folder on your PATH:
    ln -s /Applications/mdv.app/Contents/Helpers/mdv ~/.local/bin/mdv
  4. Finder's previews come from an extension inside the app. If Space doesn't show them, turn mdv on under Quick Look in System Settings › General › Login Items & Extensions.

Every release: github.com/iviv/slopviewer.xyz/releases

Works best with
The Slop Commander icon: two panels of file names

Slop Commander

A two-panel file manager in the spirit of Norton Commander and FAR, made alongside mdv. Browse there, read here:

  • Its quick view and F3 preview draw your Markdown with mdv's Quick Look extension, math and diagrams included.
  • ⌥F3 or Open with mdv sends the file under the cursor to mdv, or a folder to mdv's files sidebar.
  • Its panels wear your mdv theme and change when you change it here, so a file looks the same in both.
  • sloc opens a folder there, mdv opens a file here.

slopcommander.xyz