You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pass terminalWidth in custom command stdin JSON #308
Custom Command widgets receive context.data as JSON via stdin, but context.terminalWidth is not included. This makes it impossible for scripts to adapt output based on terminal width.
context.terminalWidth exists but is not part of context.data, so custom commands can't access it. Standard detection methods (tput cols, stty size, $COLUMNS) all return 80 in the piped stdio context.
Proposed change
Include terminalWidth (or terminal_width) in the JSON passed to custom commands:
Activity
Full labels, restore context-bar, document known limitations
feat: Pass terminalWidth in custom command stdin JSON
feat(terminal): honor `CCSTATUSLINE_WIDTH` env var to override probe (#…
feat(custom-command): include terminal_width in stdin JSON
feat(custom-command): include terminal_width in stdin JSON (#396)
feat(terminal): honor `CCSTATUSLINE_WIDTH` env var to override probe (s…
feat(custom-command): include terminal_width in stdin JSON (sirmalloc…