| Crates.io | lumin |
| lib.rs | lumin |
| version | 0.1.16 |
| created_at | 2025-04-23 06:24:12.734062+00 |
| updated_at | 2025-05-27 15:41:36.013776+00 |
| description | A library for searching and displaying local files |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1645111 |
| size | 2,072,673 |
A Rust utility for searching, traversing, and viewing files with rich filtering options and type-aware content handling.
cargo install --path .
lumin search <PATTERN> <DIRECTORY> [OPTIONS]
Options:
--case-sensitive: Enable case-sensitive matching--ignore-gitignore: Ignore .gitignore rules--omit-context <NUM>: Limit context around matches to show only NUM characters before and after each match (the matched pattern itself is always displayed in full)-B, --before-context <NUM>: Show NUM lines before each match (similar to grep's -B option)-A, --after-context <NUM>: Show NUM lines after each match (similar to grep's -A option)lumin traverse <DIRECTORY> [OPTIONS]
Options:
--case-sensitive: Enable case-sensitive filtering--ignore-gitignore: Ignore .gitignore rules--all-files: Include binary files (default: text files only)lumin view <FILE_PATH> [OPTIONS]
Options:
--max-size <SIZE>: Maximum file size in bytes to read--line-from <NUM>: Start viewing from this line number (1-based, inclusive)--line-to <NUM>: End viewing at this line number (1-based, inclusive)The view command outputs file content with:
# Build
cargo build
# Test
cargo test
# Format code
cargo fmt
# Run linter
cargo clippy
MIT
See CONTRIBUTING.md for guidelines.