Skip to content

Commit 045d03e

Browse files
committed
docs: update for v4.13.0 release
1 parent cf74e87 commit 045d03e

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/),
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

8+
## [4.13.0] - 2026-03-05
9+
10+
### Added
11+
- New `worktree` segment displaying worktree info in `{curly braces}` when running
12+
in a `--worktree` session. Only renders when worktree data is present in JSON input.
13+
Supports `show` option: `name` (default), `branch`, `path`, `origin`, or
14+
comma-separated combo (e.g., `worktree:show=name,branch`). Path and origin apply
15+
`~` home shortening. New theme color `text_worktree` (Nord15 purple).
16+
817
## [4.12.0] - 2026-03-04
918

1019
### Removed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ SL_SEGMENTS="model progress_bar:width=20 percentage tokens directory git_branch
100100

101101
Each token is `segment_name` optionally followed by `:key=value` pairs. Unknown segment names are silently ignored.
102102

103-
**Default:** `update model progress_bar percentage tokens directory added_dirs git_branch git_status usage_5hour usage_weekly`
103+
**Default:** `update model progress_bar percentage tokens directory worktree added_dirs git_branch git_status usage_5hour usage_weekly`
104104

105105
| Segment | Description |
106106
|---|---|
@@ -110,6 +110,7 @@ Each token is `segment_name` optionally followed by `:key=value` pairs. Unknown
110110
| `percentage` | Context usage percentage |
111111
| `tokens` | Token count (e.g. `84k/200k`) |
112112
| `directory` | Working directory path |
113+
| `worktree` | Worktree info in `{curly braces}` (only when running in `--worktree` session) |
113114
| `added_dirs` | Directories added via `/add-dir`, sorted alphabetically |
114115
| `git_branch` | Git branch indicator |
115116
| `git_status` | Git status: `+` staged, `!` modified, `x` deleted, `r` renamed, `?` untracked, `=` conflicted, `$` stashed, `>` ahead, `<` behind, `<>` diverged |
@@ -125,6 +126,7 @@ Each token is `segment_name` optionally followed by `:key=value` pairs. Unknown
125126
| `model` | `effort` | `full`/`short`/(empty) | `full` | Show reasoning effort: full word, single letter, or hidden |
126127
| `progress_bar` | `width` | integer | `12` | Bar width in characters |
127128
| `directory` | `basename_only` | `0`/`1` | `0` | Show only the directory name instead of the full path |
129+
| `worktree` | `show` | `name`/`branch`/`path`/`origin` or comma-separated | `name` | Which worktree fields to display |
128130
| `added_dirs` | `basename_only` | `0`/`1` | `0` | Show only directory names instead of full paths |
129131
| `added_dirs` | `separator` | string | `` | Separator between directory paths |
130132
| `git_branch` | `hide_default` | `0`/`1` | `1` | Hide branch on `main`/`master` |
@@ -254,6 +256,7 @@ gradient = [
254256
| `text_git` | `"#hex"` | Git branch text |
255257
| `text_na` | `"#hex"` | N/A indicator text |
256258
| `text_added_dirs` | `"#hex"` | Added directories text |
259+
| `text_worktree` | `"#hex"` | Worktree info text |
257260
| `usage_light` | `"#hex"` | Usage gauge: well ahead |
258261
| `usage_green` | `"#hex"` | Usage gauge: on track |
259262
| `usage_yellow` | `"#hex"` | Usage gauge: faster than sustainable |

0 commit comments

Comments
 (0)