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
-
Clone this repository:
git clone <repository-url> cd CliMarkdown -
Install the package:
pip install -e .
Usage
mdview <markdown-file>
Keyboard Controls
jorEnter: Scroll down one linek: Scroll up one lineSpaceorf: Page downb: Page upg: Go to the top of the documentG: Go to the bottom of the document/: Search for text (press Enter after typing search term)n: Go to the next search resultN: Go to the previous search resultr: Redraw the screen (useful after terminal resize)q: Quit the viewerCtrl+C: Quit the viewer
Dependencies
- rich - For console output with formatting
- markdown-it-py - For Markdown parsing
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb6e7f774634b779079d54eb21059ef598a23579a6d029e042a987d0cdc39499
|
|
| MD5 |
2294e2521fa9953dfe9a8e23741c3e49
|
|
| BLAKE2b-256 |
5d18348e1516ae14af5df30507f27386ef512e76847cb3d00bb0a90bacc6947c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd49dc59224e4df8530bbf777591639e9c103046346ccc03ce2d592d42794c71
|
|
| MD5 |
156453d85983e2d95122beda35fc26eb
|
|
| BLAKE2b-256 |
8a94980d9684cee11e428d5e5e918589489fff041d0c8199c778e5b0ae920ff4
|