mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
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:
parent
7804946970
commit
a1c33cdb5e
4 changed files with 4 additions and 36 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue