Logo
Explore Help
Sign In
YunxiaoXu/rich-print
1
0
Fork 0
You've already forked rich-print
Code Issues Pull Requests Actions Packages Projects Releases 2 Wiki Activity
4 Commits 3 Branches 6 Tags
dd45fb05f7c15ea9940ae52fac00aca0785e6b28
Commit Graph

4 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Yunxiao Xu
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
Yunxiao Xu
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
Yunxiao Xu
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
Yunxiao Xu
a1b5e72032 Initial project scaffold with uv 2026-04-01 15:52:58 -07:00
Powered by Gitea Version: 1.25.5 Page: 45ms Template: 14ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API