Skip to main content

A command line tool to display Markdown files

Project description

CLI Markdown Viewer

A pure Python command line tool to display Markdown files in the terminal with rich formatting.

Features

  • Display Markdown files with syntax highlighting and formatting
  • Navigate through documents with keyboard shortcuts
  • Search for text within documents
  • Auto-format output for the console width
  • Handle console resizing
  • Similar interface to the Linux 'less' command

Installation

From Source

  1. Clone this repository:

    git clone <repository-url>
    cd CliMarkdown
    
  2. Install the package:

    pip install -e .
    

Usage

mdview <markdown-file>

Keyboard Controls

  • j or Enter: Scroll down one line
  • k: Scroll up one line
  • Space or f: Page down
  • b: Page up
  • g: Go to the top of the document
  • G: Go to the bottom of the document
  • /: Search for text (press Enter after typing search term)
  • n: Go to the next search result
  • N: Go to the previous search result
  • r: Redraw the screen (useful after terminal resize)
  • q: Quit the viewer
  • Ctrl+C: Quit the viewer

Dependencies

Future Enhancements

  • Support for additional markup formats

  • Customizable color schemes

  • Bookmarks within documents

  • Table of contents navigation

  • look at using - asciidoctor-py3 - For AsciiDoc support

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

pymdview-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

pymdview-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymdview-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for pymdview-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bb6e7f774634b779079d54eb21059ef598a23579a6d029e042a987d0cdc39499
MD5 2294e2521fa9953dfe9a8e23741c3e49
BLAKE2b-256 5d18348e1516ae14af5df30507f27386ef512e76847cb3d00bb0a90bacc6947c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymdview-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for pymdview-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd49dc59224e4df8530bbf777591639e9c103046346ccc03ce2d592d42794c71
MD5 156453d85983e2d95122beda35fc26eb
BLAKE2b-256 8a94980d9684cee11e428d5e5e918589489fff041d0c8199c778e5b0ae920ff4

See more details on using hashes here.

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