Expand description
Display formatting for f00: columns, long listing, tree, JSON, icons, color, quoting.
Structs§
- Colorizer
- Color engine wrapping
LS_COLORS/ defaults.
Functions§
- block_
display - Disk blocks for
ls -s. - block_
display_ with_ unit - Convert 512-byte units to
unit_bytes-sized blocks, rounding up. - classify_
suffix - Classification suffix like
ls -F/-p/--file-type. - classify_
suffix_ bool - Backward-compatible helper used by older call sites.
- display_
name - Apply quoting for display; used by formatters.
- format_
columns - Multi-column layout similar to
lsdefault (column-major). - format_
columns_ cfg - Multi-column with full config.
acrossselects row-major (-x). - format_
csv - Format entries as CSV (header + rows).
- format_
json - Serialize entries (skipping directory headers) as pretty JSON.
- format_
listing - Format a single listing according to config.
- format_
listings - Format multiple listings (multiple path arguments).
- format_
long - Format many entries in long mode with aligned columns.
- format_
long_ line - Format a single long-listing line (no trailing newline).
- format_
long_ line_ simple - Re-export-friendly wrapper matching prior API.
- format_
long_ simple - Legacy signature used by older tests/callers.
- format_
one_ per_ line - One entry per line.
- format_
one_ per_ line_ cfg - One entry per line with full config (quoting, zero, inode, etc.).
- format_
permissions - Render a 10-char permission string similar to
ls -l. - format_
size_ bytes - Format a size field according to block-size / human flags.
- format_
time_ style - format_
tree - Render a tree from a flat recursive listing (entries with depth).
- format_
tsv - Format entries as TSV (header + rows).
- human_
size - Format a byte size with binary units (1024) like GNU
ls -h. - human_
size_ si - Format a byte size with SI units (1000) like GNU
ls --si. - hyperlink_
name - Wrap
textin an OSC 8 hyperlink topathwhen enabled. - icon_
for - Map an entry to a simple emoji icon (extension / kind based).
- icon_
prefix - Prefix for display: icon + space, or empty when icons disabled.
- quote_
name - Quote / escape a display name according to
style.