Commit Graph

15 Commits

Author SHA1 Message Date
0e7f30d6c3 Add padding around rendered output 2026-04-01 23:59:34 -07:00
65ff34dd2c Bump version to 0.2.2 v0.2.2 2026-04-01 23:51:52 -07:00
217feab7de Improve JSON detection: strip both ends, check matching brackets, use full content 2026-04-01 23:51:41 -07:00
c3a71c2ff9 Bump version to 0.2.1 v0.2.1 2026-04-01 23:12:21 -07:00
32a0471910 Fix less mouse pager fallback handling 2026-04-01 22:53:44 -07:00
32a8a1d4ad Improve documentation and modernize type hints 2026-04-01 21:06:34 -07:00
5935140620 Fix mypy type errors in render.py by annotating renderable variable 2026-04-01 18:57:49 -07:00
5b336f2ce0 Add LICENSE, fix PEP 639 classifier warning, enhance --version output, add dev dependencies
- 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
2026-04-01 18:40:03 -07:00
5b62100628 Bump version to 0.2.0 v0.2.0 2026-04-01 18:23:21 -07:00
e74f9a3c74 Add mouse-scrollable pager with fallback to system pager 2026-04-01 18:23:06 -07:00
e5194a7793 Add AGENTS.md with coding guidelines for agentic agents - Document build/lint/test commands (uv, pytest, ruff, mypy) - Specify code style: imports, formatting, type hints, naming - Outline error handling patterns and CLI conventions - Describe project structure and file type detection 2026-04-01 16:14:51 -07:00
dd45fb05f7 Handle unknown lexer, remove dead _THEMES list, tighten JSON detection - Catch unknown Pygments lexer names and fall back to plain text - Remove unused _THEMES list from cli.py - Only auto-detect JSON when content starts with { or [ to avoid false positives on trivial values like strings or numbers 2026-04-01 16:10:21 -07:00
5db15a8a17 Fix review issues: error handling, stdin TTY hint, narrow exceptions - Handle UnicodeDecodeError and PermissionError for file reading - Show hint when stdin is a TTY and no file given - Narrow JSON fallback exception from Exception to (SyntaxError, ValueError) - Rename 'type' parameter to 'file_type' to avoid shadowing builtin - Remove dead '.R' entry from EXTENSION_MAP 2026-04-01 16:02:56 -07:00
1abfcebc24 Implement rp CLI: rich-print markdown, JSON, code, and more
- 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
2026-04-01 15:56:57 -07:00
a1b5e72032 Initial project scaffold with uv 2026-04-01 15:52:58 -07:00