Beet ls -f '$field' - How to format '$field'?


#1

As in subject. If $field is for example a float, how can I make beets print it custom formatted, a la printf? Currently, beets outputs all floats rounded to 1 decimal. I’d like the ability to specify how many decimals to print. Is it possible?

TIA


#2

I recommend using the inline plugin, which lets you use any Python expression you like to do the formatting for a field. (You define a new field, like $field_formatted, that looks how you want.)