Long code lines were clipped at the terminal width, making them
unreadable. Pass word_wrap=True to all Syntax() calls so lines wrap
instead of being cut off.
Add --watch flag that polls a file and redraws the terminal when its
content changes. Useful for monitoring log files, configuration files,
or any file that changes over time.
Features:
- Polls file every 1 second for changes
- Disables pager (pager would block the watch loop)
- File-only: rejects stdin or - input
- Error recovery: retries when file is missing or temporarily unreadable
- State comparison: only redraws when content actually changes
Thread RP_DEBUG-driven logging through input, detection, rendering, and pager decisions so CLI behavior is inspectable without polluting stdout. Add focused coverage for debug wiring, env parsing, and stderr-only output.
- Create MIT LICENSE file
- Remove deprecated License classifier, add license-files to pyproject.toml
- Add __license__ constant to __init__.py
- Show full name, copyright, and license in rp --version
- Add ruff and mypy as dev dependencies
- Add typer CLI with auto file-type detection by extension
- Support markdown (rich.Markdown), JSON (rich.JSON), and 30+ code
languages via Pygments syntax highlighting
- Features: line numbers toggle, pager support, stdin input,
configurable color themes
- Project metadata: MIT license, author, classifiers, entry point