Allow renaming of column headers
I would like to rename the display names of columns in the album browser without changing the underlying tag patterns. Currently, columns show the default tag names (e.g. "Track", "Titel / Version", "Bitrate" etc.), but I want to display custom labels (e.g. "#" for "Track", "kbps" for "Bitrate" etc.) while keeping the same functionality.
Current Behavior
- The "Customize Headers" option (I guess that's the English name for it; right click on a column header and edit) only allows adding/removing columns and editing the underlying tag patterns
- No apparent way to change just the display name of existing columns
Expected Behavior
- Ability to set custom display names for column headers
Environment
- OS: Arch Linux
- Quod Libet 4.7.1
Note: I checked the existing documentation about custom tags, but this addresses adding new tag types rather than customizing the display names of existing columns.
There's quite a lot of internal logic around this (and multi-lingual, of course), but I imagine some config-persisted user-managed mapping might be possible
I figured out a workaround to this, which is to create a custom tag with the tag expression:
<#(length != 0)|<underlying tag>|name you want displayed>
I'm pretty sure this works because when quodlibet is deciding how to convert a conditional tag into a human-readable name, it works with a fake dummy song that has all of its tags set to 0 (and in particular has length 0). Assuming you have no songs in your library that are exactly 0 seconds long, the underlying tag will always be displayed, but the column header will be chosen based on the 0-length dummy song.
In your examples, the tags:
<#(length != 0)|<~#track>|#>
and
<#(length != 0)|<~#bitrate>|kbps>
correctly display the track number and bitrate for me, while creating column headers # and kbps.