song format: add support for limiting maximal length of a tag
This commit is contained in:
@@ -115,6 +115,10 @@
|
||||
## only if all requested values are available and/or define alternate
|
||||
## value with { }|{ } eg. {%a - %t}|{%f}
|
||||
##
|
||||
## Note: If you want to set limit on maximal length of a tag, just
|
||||
## put the appropriate number between % and character that defines
|
||||
## tag type, e.g. to make album take max. 20 terminal cells, use '%20b'.
|
||||
##
|
||||
## Note: Format that is similar to "%a - %t" (i.e. without any additional
|
||||
## braces) is equal to "{%a - %t}", so if one of the tags is missing,
|
||||
## you'll get nothing.
|
||||
|
||||
@@ -369,6 +369,8 @@ For song format you can use:
|
||||
|
||||
You can also put them in { } and then they will be displayed only if all requested values are available and/or define alternate value with { }|{ } e.g. {%a - %t}|{%f} will check if artist and title tags are available and if they are, display them. Otherwise it'll display filename.
|
||||
|
||||
\fBNote\fR: If you want to set limit on maximal length of a tag, just put the appropriate number between % and character that defines tag type, e.g. to make album take max. 20 terminal cells, use '%20b'.
|
||||
|
||||
\fBNote\fR: Format that is similar to "%a - %t" (i.e. without any additional braces) is equal to "{%a - %t}", so if one of the tags is missing, you'll get nothing.
|
||||
|
||||
Text can have different color than the main window, e.g. if you want length to be green, write $3%l$9.
|
||||
|
||||
Reference in New Issue
Block a user