Expand description
Mutt-like index format strings: %[-][min][.max]X where X is
C number, Z status/flag/mark chars, d date, F from, L
its list-aware variant (“To ” for List-Id mail),
c size,
l body lines, y X-Label, s subject, % a literal percent. -
left-aligns, min pads, .max truncates (all in characters).
Mutt conditionals work too: %?X?then&else? renders then when
field X is set and non-zero.
Structs§
Constants§
- DEFAULT_
FORMAT - Mutt’s default index_format, with its inline
%{%b %e}date as%-6d(the date_format default is “%b %e”). - DEFAULT_
STATUS_ FORMAT - Renders exactly rmut’s classic status line; override with
[ui] status_format. Status specifiers: %f mailbox, %m messages, %M shown-when-limited, %n new, %u unread, %d deleted, %F flagged, %t tagged, %s sort, %V limit pattern, %r mailbox mark (* pending changes, % read-only), %P index position, %v version;%>Xfills the rest of the width with X, right-aligning what follows.
Functions§
- render
- render_
status render_withplus mutt’s%>X: everything after it is pushed to the right edge ofwidth, the gap filled with X (the status line uses this; only the first%>counts).- render_
with - The
%[-][min][.max]X+%?X?then&else?machinery over any specifier set; index lines and the status line share it. Unknown specifiers should come back as"%x"to stay visible.