Skip to content

Conversation

@dandavison
Copy link
Owner

cc @th1000s #885 rebased on master, and with the CI change re-enabled.

th1000s and others added 4 commits January 16, 2022 18:33
There is no such thing as "Center Align" with discrete terminal cells. In
some cases a decision has to be made whether to use the left or the right
cell, e.g. when fitting one char into 4 cells: "_X__" or "__X_".

The format!() center/^ default is left, but when padding numbers these
are now aligned to the right if required. Strings remain left-aligned.
Similar to Pythons `{n:2.1f}` where f indicates a floating point type.
The type may be separated by an underscore: `{n:<15.14_type}`.

Add a FormatStringPlaceholderDataAnyPlaceholder template which works
without a borrowed Placeholder.
Prefix and suffix of the format string are separator_style highlighted,
format options are none, {n}, {n:block}, {n:every-N}.
@dandavison dandavison mentioned this pull request Jan 16, 2022
@dandavison dandavison closed this Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants