mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-10-20 02:17:03 +00:00
Free Memory Widget (#155)
* FreeMemory widget: Description: Shows system memory usage (used/total) in a compact format like Mem: 12.4G/16.0G Features: - On macOS: Uses vm_stat to calculate memory like htop (Active + Wired pages) - On other platforms: Falls back to Node.js os.freemem()/os.totalmem() - Smart byte formatting (G, M, K, B) - Supports raw value mode (omits "Mem:" prefix) - Default color: cyan Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Version bump and README update --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Matthew Breedlove <sirmalloc@gmail.com>
This commit is contained in:
6 files changed
+294
-3
No files matched your search
@@ -46,8 +46,9 @@
|
||||
|
||||
## 🆕 Recent Updates
|
||||
|
||||
### v2.0.26 - v2.0.28 - Performance, git internals, and workflow improvements
|
||||
### v2.0.26 - v2.0.29 - Performance, git internals, and workflow improvements
|
||||
|
||||
- **🧠 Memory Usage widget (v2.0.29)** - Added a new widget that shows current system memory usage (`Mem: used/total`).
|
||||
- **⚡ Block timer cache (v2.0.28)** - Cache block timer metrics to reduce JSONL parsing on every render, with per-config hashed cache files and automatic 5-hour block invalidation.
|
||||
- **🧱 Git widget command refactor (v2.0.28)** - Refactored git widgets to use shared git command helpers and expanded coverage for failure and edge-case tests.
|
||||
- **🪟 Windows UTF-8 piped output fix (v2.0.28)** - Sets the Windows UTF-8 code page for piped status line rendering.
|
||||
@@ -381,6 +382,7 @@ Once configured, ccstatusline automatically formats your Claude Code status line
|
||||
- **Context Percentage** - Shows percentage of context limit used (dynamic: 1M for Sonnet 4.5 with `[1m]` suffix, 200k otherwise)
|
||||
- **Context Percentage (usable)** - Shows percentage of usable context (dynamic: 800k for Sonnet 4.5 with `[1m]` suffix, 160k otherwise, accounting for auto-compact at 80%)
|
||||
- **Terminal Width** - Shows detected terminal width (for debugging)
|
||||
- **Memory Usage** - Shows system memory usage (used/total, e.g., "Mem: 12.4G/16.0G")
|
||||
- **Custom Text** - Add your own custom text to the status line
|
||||
- **Custom Command** - Execute shell commands and display their output (refreshes whenever the statusline is updated by Claude Code)
|
||||
- **Separator** - Visual divider between widgets (customizable: |, -, comma, space)
|
||||
|
||||
Reference in new issue
Block a user