ccstatusline 2.1.2 → 2.1.4

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,14 @@
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.4 - Usage widgets, links, new git insertions / deletions widgets, 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.
55
+ - **➕ New Git Insertions widget (v2.1.4)** - Added a dedicated Git widget that shows only uncommitted insertions (e.g., `+42`).
56
+ - **➖ New Git Deletions widget (v2.1.4)** - Added a dedicated Git widget that shows only uncommitted deletions (e.g., `-10`).
54
57
 
55
58
  ### v2.0.26 - v2.0.29 - Performance, git internals, and workflow improvements
56
59
 
@@ -411,6 +414,8 @@ bun run example
411
414
  - **Model Name** - Shows the current Claude model (e.g., "Claude 3.5 Sonnet")
412
415
  - **Git Branch** - Displays current git branch name
413
416
  - **Git Changes** - Shows uncommitted insertions/deletions (e.g., "+42,-10")
417
+ - **Git Insertions** - Shows uncommitted insertions only (e.g., "+42")
418
+ - **Git Deletions** - Shows uncommitted deletions only (e.g., "-10")
414
419
  - **Git Root Dir** - Shows the git repository root directory name
415
420
  - **Git Worktree** - Shows the name of the current git worktree
416
421
  - **Session Clock** - Shows elapsed time since session start (e.g., "2hr 15m")
@@ -436,6 +441,7 @@ bun run example
436
441
  - **Memory Usage** - Shows system memory usage (used/total, e.g., "Mem: 12.4G/16.0G")
437
442
  - **Custom Text** - Add your own custom text to the status line
438
443
  - **Custom Command** - Execute shell commands and display their output (refreshes whenever the statusline is updated by Claude Code)
444
+ - **Link** - Add clickable terminal hyperlinks (OSC 8) with configurable URL and display text
439
445
  - **Separator** - Visual divider between widgets (customizable: |, -, comma, space; available when Powerline mode is off and no default separator is configured)
440
446
  - **Flex Separator** - Expands to fill available space (available when Powerline mode is off)
441
447
 
@@ -523,6 +529,7 @@ Widget-specific shortcuts:
523
529
  - **Block Timer**: `p` cycle display mode (time/full bar/short bar)
524
530
  - **Current Working Dir**: `h` home abbreviation, `s` segment editor, `f` fish-style path
525
531
  - **Custom Command**: `e` command, `w` max width, `t` timeout, `p` preserve ANSI colors
532
+ - **Link**: `u` URL, `e` link text
526
533
 
527
534
  ---
528
535
 
@@ -554,6 +561,12 @@ Execute shell commands and display their output dynamically:
554
561
 
555
562
  > 💡 **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
563
 
564
+ #### Link Widget
565
+ Create clickable links in terminals that support OSC 8 hyperlinks:
566
+ - `metadata.url` - target URL (http/https)
567
+ - `metadata.text` - optional display text (defaults to URL)
568
+ - Falls back to plain text when URL is missing or unsupported
569
+
557
570
  ---
558
571
 
559
572
  ### 🔗 Integration Example: ccusage
@@ -572,6 +585,7 @@ Execute shell commands and display their output dynamically:
572
585
  ### ✂️ Smart Truncation
573
586
 
574
587
  When terminal width is detected, status lines automatically truncate with ellipsis (...) if they exceed the available width, preventing line wrapping.
588
+ Truncation is ANSI/OSC-aware, so preserved color output and OSC 8 hyperlinks remain well-formed.
575
589
 
576
590
  ---
577
591