Skip to main content

Crate f00_format

Crate f00_format 

Source
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 ls default (column-major).
format_columns_cfg
Multi-column with full config. across selects 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 text in an OSC 8 hyperlink to path when 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.