Expand description
{placeholder} substitution for --format and --tooltip-format.
Same surface as claudebar (claudebar:625-667): placeholders are surrounded
by {}, unknown placeholders are left untouched (matching bash parameter
expansion’s default behavior — claudebar uses ${text//\{x\}/$val} which
is a no-op for unknown keys).
Built on a Map<&str, String> so each vendor can register its own
placeholder set and the rendering code doesn’t need to know what they are.
Functions§
- local_
time_ hm - local_
time_ hms - placeholders
- Convenience: build a placeholder map from
(&str, impl Into<String>)pairs. - substitute
- Substitute every
{key}intemplatewithvalues[key]. Unknown keys are left as-is. - updated_
at_ hm - updated_
at_ hms