refactor(status-line): remove padding config

The status line is now inlined in the footer's left section,
so horizontal padding is no longer applicable. Remove padding
from StatusLineConfig, settings schema, JSON schema, and docs.
This commit is contained in:
wenshao 2026-04-08 20:24:33 +08:00
parent 7804946970
commit a1c33cdb5e
4 changed files with 4 additions and 36 deletions

View file

@ -40,8 +40,7 @@ Add a `statusLine` object under the `ui` key in `~/.qwen/settings.json`:
"ui": {
"statusLine": {
"type": "command",
"command": "input=$(cat); model=$(echo \"$input\" | jq -r '.model.display_name'); pct=$(echo \"$input\" | jq -r '.context_window.used_percentage'); echo \"$model ctx:${pct}%\"",
"padding": 0
"command": "input=$(cat); model=$(echo \"$input\" | jq -r '.model.display_name'); pct=$(echo \"$input\" | jq -r '.context_window.used_percentage'); echo \"$model ctx:${pct}%\""
}
}
}
@ -51,7 +50,6 @@ Add a `statusLine` object under the `ui` key in `~/.qwen/settings.json`:
| --------- | ----------- | -------- | ------------------------------------------------------------------------------------- |
| `type` | `"command"` | Yes | Must be `"command"` |
| `command` | string | Yes | Shell command to execute. Receives JSON via stdin, first line of stdout is displayed. |
| `padding` | number | No | Horizontal padding (default: `0`) |
## JSON input