tmux/Option/status-left-length
Properties
- logseq-entity
- Logseq/Entity/Software/Option
- see-also
- tmux/Option/status-left, My/AI/Agent/Fleet
status-left-length- A tmux session option setting the maximum width, in columns, of the left component of the tmux/Status Line. The default is
10. - It caps rather than reserves. A left component narrower than the cap draws at its own width and the window list begins immediately after it, so raising the cap spends columns only on the sessions whose names need them.
- Under the default tmux/Option/status-left of
[#{session_name}], the opening bracket takes the first column, so the cap admitsstatus-left-length - 1characters of the tmux/session/Name — nine at the default10. Usage
- Raise it in tmux/Config:
- Or at runtime with tmux/Command/set-option/g:
- Read the current value with tmux/Command/show-options/gv:
- Render the left component exactly as the status line draws it, cap and all:
How the cut is made
status-format[0]applies the cap as#{T;=/#{status-left-length}:status-left}. The=Nformat modifier keeps the first N characters and discards the rest.=Ntakes an optional marker as a second argument —#{=/9/…:session_name}appends…when it trims. The stockstatus-formatsupplies none, so a truncated left component stops mid-word with nothing to mark the cut: at the default cap, the session nameencode-2026-08-17draws as[encode-20, and the closing]is never reached.
Set to 40 here, in the config
40is what lets a full My/AI/Agent/Fleet session name likehayward-2026-08-24render instead of stopping at[hayward-2.- It began as a runtime
set -g, the same way tmux/Option/status-left and tmux/Option/status-right were on this server — see tmux/Status Line/Q/Why does my status-right repeat the same session name instead of listing every session?. A runtimeset -gis server-global and outlives every session on that server, but not the server: on the nexttmux kill-server, or the first session after a reboot, the cap would have returned to10and long session names would have started being cut again, with nothing to announce it. - It is now in the config file. 2026/08/24,
set -g status-left-length 40was added to the chezmoi source for~/.config/tmux/tmux.confwith a comment giving the reason — My/Dotfiles changetrack-tmux-status-left-length. A server started from that file reports40with no runtimeset -gissued to it; the same probe against-f /dev/nullreports10and renders[hayward-2.- sh
tmux -L slltest -f ~/.config/tmux/tmux.conf new-session -d -s hayward-2026-08-24 tmux -L slltest show-options -gv status-left-length # 40 tmux -L slltest display-message -p '#{T;=/#{status-left-length}:status-left}' # [hayward-2026-08-24] tmux -L slltest kill-server - An isolated socket is the way to check this while a fleet is attached —
kill-serveron the default socket would take every seat's session down with it.
- The neighbouring status options are not in the config, and do not need to be. Measured 2026/08/24 on tmux/v/3.7b against a
-f /dev/nullserver, tmux/Option/status-left, tmux/Option/status-right, tmux/Option/status-right-length,status-styleandstatus-intervalon the running server are identical to stock — theset -gurestore proposed on the status-right question page has been applied.status-left-lengthwas the only status option left departing from stock.
- A tmux session option setting the maximum width, in columns, of the left component of the tmux/Status Line. The default is