Skip to main content

Module format

Module format 

Source
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§

IndexFields

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; %>X fills the rest of the width with X, right-aligning what follows.

Functions§

render
render_status
render_with plus mutt’s %>X: everything after it is pushed to the right edge of width, 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.