diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-14 20:40:11 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-14 20:41:20 +0300 |
| commit | 5b91dae12ffa09f5842a0c852ef06299c31fe342 (patch) | |
| tree | 86562e2fb20207f69998cbcc931c570901b99892 /docs | |
| parent | b0d46fb9bc2a3e7fb58864939e2580b8a9a2f1bc (diff) | |
feat: configure sidebar entry gaps
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/next/CHANGELOG.md | 4 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/configuration.mdx | 4 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/ja/configuration.mdx | 4 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/zh-cn/configuration.mdx | 4 | ||||
| -rw-r--r-- | docs/next/website/src/data/config-reference.json | 12 |
5 files changed, 28 insertions, 0 deletions
diff --git a/docs/next/CHANGELOG.md b/docs/next/CHANGELOG.md index 384118f6..f6c060bf 100644 --- a/docs/next/CHANGELOG.md +++ b/docs/next/CHANGELOG.md @@ -3,9 +3,13 @@ ## Unreleased ### Added +- Added independent `row_gap` settings for expanded Space and Agent sidebar entries. (#873) - Copy mode now supports literal smart-case search with `/` and `?`, repeating with `n` and `N`, match highlighting, and tmux-style cross-line `w`/`b`/`e` word motions. (#1230) - Added maki detection with idle, working, and blocked screen states. (#1301, thanks @tontinton) +### Changed +- Expanded Space and Agent sidebar entries now use a packed layout by default; set the corresponding `row_gap` to `1` to restore the previous spacing. (#873) + ### Fixed - Outer-terminal focus gained and lost reports now reach the focused pane when its application enables focus reporting, restoring Neovim file autoreload and other focus-aware terminal behavior. (#1337) - Native Windows servers now detach from the terminal console that launched them, so closing WezTerm, Windows Terminal, or another host terminal no longer stops persistent pane processes. (#1329) diff --git a/docs/next/website/src/content/docs/configuration.mdx b/docs/next/website/src/content/docs/configuration.mdx index 9455f8c3..01d82547 100644 --- a/docs/next/website/src/content/docs/configuration.mdx +++ b/docs/next/website/src/content/docs/configuration.mdx @@ -236,12 +236,14 @@ The expanded desktop sidebar renders each inner array in `rows` as one line. The ```toml [ui.sidebar.agents] +row_gap = 0 rows = [ ["state_icon", "workspace", "tab"], ["agent"], ] [ui.sidebar.spaces] +row_gap = 0 rows = [ ["state_icon", "workspace"], ["branch", "git_status"], @@ -271,6 +273,8 @@ Space rows accept these built-in tokens: Tokens render in their configured order. Herdr normally separates adjacent values with ` · ` and uses a single space after `state_icon`. Missing values and their separators disappear; a row disappears when none of its tokens have a value. Each layout may contain at most 16 rows, with at most 16 tokens in each row. +`row_gap` controls the blank terminal rows between entries, independently for the Agent and Space panels. It defaults to `0`, which packs entries together; set it to `1` to restore the previous spacing. It does not add spacing between the content lines declared in `rows`. Consecutive indented worktree children remain packed as one Space group. + Override the complete Agent layout for a known agent under `rows_by_agent`: ```toml diff --git a/docs/next/website/src/content/docs/ja/configuration.mdx b/docs/next/website/src/content/docs/ja/configuration.mdx index ffc142f4..7105efcd 100644 --- a/docs/next/website/src/content/docs/ja/configuration.mdx +++ b/docs/next/website/src/content/docs/ja/configuration.mdx @@ -235,12 +235,14 @@ yellow = "#f9e2af" ```toml [ui.sidebar.agents] +row_gap = 0 rows = [ ["state_icon", "workspace", "tab"], ["agent"], ] [ui.sidebar.spaces] +row_gap = 0 rows = [ ["state_icon", "workspace"], ["branch", "git_status"], @@ -270,6 +272,8 @@ Space の行では、次の組み込みトークンを使えます: トークンは設定された順序で描画されます。Herdr は通常、隣接する値を ` · ` で区切り、`state_icon` の後には空白を 1 つ入れます。値がない場合、その値と区切りは表示されません。すべてのトークンに値がない行は表示されません。各レイアウトは最大 16 行、各行は最大 16 トークンです。 +`row_gap` は、Agent パネルと Space パネルごとに、エントリ間の空白行数を指定します。デフォルトは `0` で、エントリを詰めて表示します。以前の間隔に戻すには `1` に設定します。`rows` で定義したコンテンツ行の間隔には影響しません。連続するインデントされた worktree の子は、1 つの Space グループとして詰めて表示されます。 + 既知のエージェントについて Agent の完全なレイアウトを上書きするには、`rows_by_agent` を使います: ```toml diff --git a/docs/next/website/src/content/docs/zh-cn/configuration.mdx b/docs/next/website/src/content/docs/zh-cn/configuration.mdx index ccf6c312..8a232cc7 100644 --- a/docs/next/website/src/content/docs/zh-cn/configuration.mdx +++ b/docs/next/website/src/content/docs/zh-cn/configuration.mdx @@ -235,12 +235,14 @@ yellow = "#f9e2af" ```toml [ui.sidebar.agents] +row_gap = 0 rows = [ ["state_icon", "workspace", "tab"], ["agent"], ] [ui.sidebar.spaces] +row_gap = 0 rows = [ ["state_icon", "workspace"], ["branch", "git_status"], @@ -270,6 +272,8 @@ Space 行支持以下内置 token: token 会按配置顺序渲染。Herdr 通常使用 ` · ` 分隔相邻值,并在 `state_icon` 后使用一个空格。缺失值及其分隔符会消失;当一行中的所有 token 都没有值时,该行会消失。每个布局最多可包含 16 行,每行最多可包含 16 个 token。 +`row_gap` 分别控制 Agent 和 Space 面板中条目之间的空白终端行数。默认值为 `0`,会紧密排列条目;设为 `1` 可恢复之前的间距。它不会在 `rows` 声明的内容行之间添加间距。连续缩进的 worktree 子项仍会作为一个 Space 组紧密排列。 + 在 `rows_by_agent` 下为已知智能体覆盖完整的 Agent 布局: ```toml diff --git a/docs/next/website/src/data/config-reference.json b/docs/next/website/src/data/config-reference.json index f84e6da1..65a6f29e 100644 --- a/docs/next/website/src/data/config-reference.json +++ b/docs/next/website/src/data/config-reference.json @@ -669,6 +669,12 @@ ] }, { + "key": "ui.sidebar.agents.row_gap", + "type": "integer", + "default": "0", + "description": "Blank terminal rows between expanded Agent sidebar entries. Set to 1 to restore the previous spacing." + }, + { "key": "ui.sidebar.agents.rows", "type": "list of token rows", "default": "[[\"state_icon\", \"workspace\", \"tab\"], [\"agent\"]]", @@ -681,6 +687,12 @@ "description": "Complete Agent-row overrides keyed by strict canonical agent id. Agents without an override use ui.sidebar.agents.rows." }, { + "key": "ui.sidebar.spaces.row_gap", + "type": "integer", + "default": "0", + "description": "Blank terminal rows between expanded Space sidebar entries. Set to 1 to restore the previous spacing. Consecutive indented worktree children remain packed as one group." + }, + { "key": "ui.sidebar.spaces.rows", "type": "list of token rows", "default": "[[\"state_icon\", \"workspace\"], [\"branch\", \"git_status\"]]", |
