| Crates.io | mdless |
| lib.rs | mdless |
| version | 0.2.3 |
| created_at | 2025-09-23 18:47:26.302364+00 |
| updated_at | 2025-09-23 18:47:26.302364+00 |
| description | A terminal-based markdown file viewer |
| homepage | https://github.com/raykrueger/mdless |
| repository | https://github.com/raykrueger/mdless |
| max_upload_size | |
| id | 1851960 |
| size | 142,392 |
A fast, terminal-based markdown file viewer built with Rust.
-w flag)/ search, navigate with n/Ncargo install --path .
mdless README.md
mdless -w README.md
| Key | Action |
|---|---|
q |
Quit the application |
r |
Reload the file manually |
| Key | Action |
|---|---|
/ |
Start search (vim-like) |
n |
Go to next search result |
N |
Go to previous search result |
Enter |
Exit search mode (keep results) |
Esc |
Cancel search and clear results |
| Key | Action |
|---|---|
j / ↓ |
Scroll down one line |
k / ↑ |
Scroll up one line |
J |
Scroll down 5 lines |
K |
Scroll up 5 lines |
d |
Scroll down half page |
u |
Scroll up half page |
D |
Scroll down 10 lines |
U |
Scroll up 10 lines |
f / Page Down |
Scroll down full page |
b / Page Up |
Scroll up full page |
g / Home |
Go to top of document |
G / End |
Go to bottom of document |
M |
Go to middle of document |
cargo build --release
cargo test
cargo fmt
cargo clippy
The project includes a pre-commit hook that automatically runs formatting checks, linting, compilation verification, and tests before each commit. To install the hook:
# Install or reinstall the pre-commit hook
./scripts/install-hooks.sh
The pre-commit hook will run:
cargo check - Fast compilation check (runs first)cargo fmt --check - Verify code formattingcargo clippy - Run linter with warnings as errorscargo test - Run all testsTo run the checks manually without committing:
./scripts/pre-commit-checks.sh
To bypass the hook for a specific commit (not recommended):
git commit --no-verify
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.