typst-oxifmt icon indicating copy to clipboard operation
typst-oxifmt copied to clipboard

Convenient Rust-like string formatting in Typst (previously "typst-strfmt")

Results 3 typst-oxifmt issues
Sort by recently updated
recently updated
newest added

I realise that this is supposed to be a port of rust's `format!`, which does not support grouping digits (as in `1,000,000.0000`), but I maybe this feature is commonly wanted...

enhancement
help wanted
good first issue

Typst 0.12 will bring fixed-point decimals, they should be supported by oxifmt and behave exactly like floats.

feature request

[C/C++](https://cplusplus.com/reference/cstdio/printf/), [Python](https://docs.python.org/2/library/string.html#format-specification-mini-language), and [Java](https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax) all support the `%g` formatting specifier, which effectively selects between `%e` and `%f` as appropriate. I was surprised to learn that Rust does not. If this...

feature request