forked from external/yambar
implement field width tag format option
This implements the possibility of specifying padding for numeric tags. Both space and zero padding is supported.
This commit is contained in:
parent
73ccafdade
commit
146759bd96
3 changed files with 79 additions and 25 deletions
|
@ -60,10 +60,20 @@ be used.
|
|||
:[ *Kind*
|
||||
:[ *Description*
|
||||
:< *Applies to*
|
||||
| [0]<number>[.]
|
||||
: format
|
||||
: The width reserved to the field. The leading '0' is optional and
|
||||
indicates zero padding, as opposed to space padding. The trailing
|
||||
'.' is also optional
|
||||
: Numeric tags (integer and floats)
|
||||
| .<number>
|
||||
: format
|
||||
: How many decimals to print
|
||||
: Float tags
|
||||
| [0]<N>[.]<M>
|
||||
: format
|
||||
: Combined version of the two previous formatters
|
||||
: N: numeric tags, M: float tags
|
||||
| hex
|
||||
: format
|
||||
: Renders a tag's value in hex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue