ccstatusline 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,11 +46,12 @@
46
46
 
47
47
  ## 🆕 Recent Updates
48
48
 
49
- ### v2.1.0 - v2.1.1 - Usage widgets and reliability fixes
49
+ ### v2.1.0 - v2.1.3 - Usage widgets, links, and reliability fixes
50
50
 
51
51
  - **🧩 New Usage widgets (v2.1.0)** - Added **Session Usage**, **Weekly Usage**, **Reset Timer**, and **Context Bar** widgets.
52
52
  - **📊 More accurate counts (v2.1.0)** - Usage/context widgets now use new statusline JSON metrics when available for more accurate token and context counts.
53
53
  - **🪟 Windows empty file bug fix (v2.1.1)** - Fixed a Windows issue that could create an empty `c:\dev\null` file.
54
+ - **🔗 New Link widget (v2.1.3)** - Added a new **Link** widget with clickable OSC8 rendering, preview parity, and raw mode support.
54
55
 
55
56
  ### v2.0.26 - v2.0.29 - Performance, git internals, and workflow improvements
56
57
 
@@ -436,6 +437,7 @@ bun run example
436
437
  - **Memory Usage** - Shows system memory usage (used/total, e.g., "Mem: 12.4G/16.0G")
437
438
  - **Custom Text** - Add your own custom text to the status line
438
439
  - **Custom Command** - Execute shell commands and display their output (refreshes whenever the statusline is updated by Claude Code)
440
+ - **Link** - Add clickable terminal hyperlinks (OSC 8) with configurable URL and display text
439
441
  - **Separator** - Visual divider between widgets (customizable: |, -, comma, space; available when Powerline mode is off and no default separator is configured)
440
442
  - **Flex Separator** - Expands to fill available space (available when Powerline mode is off)
441
443
 
@@ -523,6 +525,7 @@ Widget-specific shortcuts:
523
525
  - **Block Timer**: `p` cycle display mode (time/full bar/short bar)
524
526
  - **Current Working Dir**: `h` home abbreviation, `s` segment editor, `f` fish-style path
525
527
  - **Custom Command**: `e` command, `w` max width, `t` timeout, `p` preserve ANSI colors
528
+ - **Link**: `u` URL, `e` link text
526
529
 
527
530
  ---
528
531
 
@@ -554,6 +557,12 @@ Execute shell commands and display their output dynamically:
554
557
 
555
558
  > 💡 **Tip:** Custom commands can be other Claude Code compatible status line formatters! They receive the same JSON via stdin that ccstatusline receives from Claude Code, allowing you to chain or combine multiple status line tools.
556
559
 
560
+ #### Link Widget
561
+ Create clickable links in terminals that support OSC 8 hyperlinks:
562
+ - `metadata.url` - target URL (http/https)
563
+ - `metadata.text` - optional display text (defaults to URL)
564
+ - Falls back to plain text when URL is missing or unsupported
565
+
557
566
  ---
558
567
 
559
568
  ### 🔗 Integration Example: ccusage
@@ -572,6 +581,7 @@ Execute shell commands and display their output dynamically:
572
581
  ### ✂️ Smart Truncation
573
582
 
574
583
  When terminal width is detected, status lines automatically truncate with ellipsis (...) if they exceed the available width, preventing line wrapping.
584
+ Truncation is ANSI/OSC-aware, so preserved color output and OSC 8 hyperlinks remain well-formed.
575
585
 
576
586
  ---
577
587