563 B
563 B
wezterm.truncate_left_to_width(string, max_width, min_width)
Since: nightly builds only
Returns a copy of string that is no longer than max_width columns
(as measured by wezterm.column_width), and, optionally,
no shorter than min_width columns, padding out with spaces.
Truncation and padding occur on the left hand side of the string.
For example, wezterm.truncate_to_width("hello", 3) returns "llo",
and wezterm.truncate_to_width("a", 10, 5) returns " a"`.
See also: wezterm.truncate_to_width