31 Commits

Author SHA1 Message Date
ee67bcb768 Merge pull request 'Fix code wrapping for syntax-highlighted output' (#3) from hotfix/code-wrap into main
All checks were successful
Release / checks (3.12) (push) Successful in -26s
Release / checks (3.13) (push) Successful in -24s
Release / checks (3.14) (push) Successful in -22s
Release / release (push) Successful in -11s
CI / lint (push) Successful in -27s
CI / typecheck (push) Successful in -23s
CI / test (3.12) (push) Successful in -27s
CI / test (3.13) (push) Successful in -26s
CI / test (3.14) (push) Successful in -26s
v0.3.1
2026-04-04 15:06:49 -07:00
868656ea12 Bump version to 0.3.1
All checks were successful
CI / lint (pull_request) Successful in -25s
CI / typecheck (pull_request) Successful in -22s
CI / test (3.12) (pull_request) Successful in -24s
CI / test (3.13) (pull_request) Successful in -23s
CI / test (3.14) (pull_request) Successful in -26s
2026-04-04 14:57:45 -07:00
7df3acde9b fix: enable word wrapping for syntax-highlighted code output
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.
2026-04-04 14:47:21 -07:00
579df72869 Merge pull request 'Bump version to 0.3.0' (#2) from dev into main
All checks were successful
CI / lint (push) Successful in -28s
CI / test (3.12) (push) Successful in -24s
CI / test (3.13) (push) Successful in -23s
CI / test (3.14) (push) Successful in -26s
CI / typecheck (push) Successful in -25s
Release / checks (3.12) (push) Successful in -24s
Release / checks (3.13) (push) Successful in -21s
Release / checks (3.14) (push) Successful in -21s
Release / release (push) Successful in -1s
v0.3.0
2026-04-04 07:00:54 -07:00
537238f56f Bump version to 0.3.0
All checks were successful
CI / lint (push) Successful in -26s
CI / typecheck (push) Successful in -26s
CI / test (3.14) (push) Successful in -24s
CI / lint (pull_request) Successful in -28s
CI / typecheck (pull_request) Successful in -23s
CI / test (3.12) (pull_request) Successful in -25s
CI / test (3.13) (pull_request) Successful in -23s
CI / test (3.14) (pull_request) Successful in -24s
CI / test (3.12) (push) Successful in -25s
CI / test (3.13) (push) Successful in -25s
2026-04-04 06:58:19 -07:00
598450d9e2 Merge pull request 'Merge dev into main' (#1) from dev into main
All checks were successful
CI / lint (push) Successful in -28s
CI / typecheck (push) Successful in -24s
CI / test (3.12) (push) Successful in -24s
CI / test (3.13) (push) Successful in -23s
CI / test (3.14) (push) Successful in -24s
2026-04-04 06:42:41 -07:00
0f93d3a095 Add watch mode for live file monitoring
All checks were successful
CI / lint (push) Successful in -26s
CI / typecheck (push) Successful in -23s
CI / test (3.12) (push) Successful in -25s
CI / test (3.13) (push) Successful in -24s
CI / test (3.14) (push) Successful in -24s
CI / lint (pull_request) Successful in -28s
CI / test (3.14) (pull_request) Successful in -24s
CI / typecheck (pull_request) Successful in -24s
CI / test (3.12) (pull_request) Successful in -25s
CI / test (3.13) (pull_request) Successful in -24s
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
2026-04-04 05:23:28 -07:00
d94cf2df30 Run CI on dev pushes
All checks were successful
CI / lint (push) Successful in -20s
CI / typecheck (push) Successful in -19s
CI / test (3.12) (push) Successful in -21s
CI / test (3.13) (push) Successful in -18s
CI / test (3.14) (push) Successful in -21s
2026-04-03 19:11:59 -07:00
93c777cf6a Add opt-in debug logging across the CLI pipeline
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.
2026-04-03 19:09:24 -07:00
37502c3083 Add script detection, env shebang parser, and opt-in content guessing 2026-04-03 13:55:54 -07:00
63102473da Add Git workflow and update docs 2026-04-03 03:32:00 -07:00
1ac724603a Ignore OpenCode state directory
All checks were successful
CI / lint (push) Successful in 13s
CI / test (3.12) (push) Successful in -32s
CI / test (3.14) (push) Successful in -30s
CI / typecheck (push) Successful in -30s
CI / test (3.13) (push) Successful in -31s
2026-04-03 00:43:10 -07:00
907b911e95 Add release workflow and expand Python support matrix 2026-04-03 00:43:02 -07:00
383447d050 Add GitHub Actions CI workflow 2026-04-02 21:23:38 -07:00
695e5b6541 Add pytest coverage for CLI and rendering behavior 2026-04-02 14:34:46 -07:00
f32da588fb Bump version to 0.2.3 v0.2.3 2026-04-01 23:59:55 -07:00
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