Skip to main content

A friendly, polished terminal Markdown viewer.

Project description

mdtv

mdtv is a friendly terminal Markdown viewer built with Typer and Textual.

Install

uv sync

Use

Open a file:

uv run mdtv README.md

Read from stdin:

cat README.md | uv run mdtv

Hide the contents sidebar:

uv run mdtv README.md --no-toc

The sidebar is closed by default. Press t to open it on the right side.

Start with a Textual theme:

uv run mdtv README.md --theme nord

Built-in themes include textual-dark, textual-light, nord, gruvbox, catppuccin-mocha, dracula, tokyo-night, monokai, flexoki, catppuccin-latte, solarized-light, solarized-dark, rose-pine, atom-one-dark, and atom-one-light.

Preferences

mdtv stores minimal preferences in ~/.mdtv.json:

{
  "theme": "textual-dark"
}

Selecting a theme with d updates that file. Sidebar visibility is session-only and always starts closed unless --toc is passed.

Development

uv run ruff format .
uv run ruff check .
uv run pytest

Keys

  • Up / Down or k / j scroll line by line
  • PageUp / PageDown scroll by page
  • Space or f scrolls forward by page
  • b scrolls backward by page
  • Home jumps to the top
  • End jumps to the bottom
  • t toggles the contents sidebar
  • d opens Textual's theme picker
  • r reloads file-backed documents
  • ? opens the help modal
  • q or Esc quits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdtv-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdtv-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file mdtv-0.1.0.tar.gz.

File metadata

  • Download URL: mdtv-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mdtv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c58d3df998640e5ff62f0dff222c1144f88fe28656ad381ec5d9ae595ae18c41
MD5 c048b43a7da9095185da9675c157d172
BLAKE2b-256 9b9933f739cb21dbca40f444720c5ca8b0b614e1a042944649b51ca081b78008

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdtv-0.1.0.tar.gz:

Publisher: workflow.yml on apageadev/mdtv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mdtv-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mdtv-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mdtv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 229315f10a9e040d62e80514033ee3784e325a18a3d976acddbaea16c0c09d91
MD5 f2980955c8fd3f7cd0995850cf5c880d
BLAKE2b-256 0da9f1b03befc45e4e5ebb2779ffa645060604b677b1c99b903d3b71f68da37d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdtv-0.1.0-py3-none-any.whl:

Publisher: workflow.yml on apageadev/mdtv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page