Add S: to list sessions with modifiers for sorting, from Michael Grant.

This commit is contained in:
nicm
2025-06-20 13:31:59 +00:00
parent d82d9468b4
commit 522652913f
2 changed files with 106 additions and 13 deletions

14
tmux.1
View File

@ -5909,8 +5909,18 @@ or
.Ql L:\&
will loop over each session, window, pane or client and insert the format once
for each.
For windows and panes, two comma-separated formats may be given:
the second is used for the current window or active pane.
.Ql S:\& ,
can take an optional sort argument
.Ql /i\& ,
.Ql /n\& ,
.Ql /t\&
to sort by index, name, or time; or
.Ql /r\&
to sort in reverse order. For example,
.Ql S/nr:\&
to sort sessions by name in reverse order.
For each, two comma-separated formats may be given:
the second is used for the current window, active pane, or active session.
For example, to get a list of windows formatted like the status line:
.Bd -literal -offset indent
#{W:#{E:window-status-format} ,#{E:window-status-current-format} }