reupen / columns_ui

Alternative UI for the foobar2000 audio player
https://yuo.be/columns-ui
GNU Lesser General Public License v3.0
526 stars 32 forks source link

Better multivalue support for Filter panels (via titleformatting) #37

Open Daeron08 opened 8 years ago

Daeron08 commented 8 years ago

Currently the only supported way to split multivalue tags into multiple items in Filter panel is to use 'Artist' as opposed to something like '%< artist >%'. Is this still something that can't realistically be implemented? Take a look at facets' implementation in this case: http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components/Facets_(foo_facets)#Multivalue_fields

Furthermore, if possible, I'd extend the functions listed there by another: $meta_split(field,seperator). Where field is the name of the tag, (or possibly an entire titleformatting expression) and the separator is a character (such as ', ') that is used to split the string into pieces. Meaning I could feed it an arbitrary string or a tag containing values separated by comma (and space) which was not actually written as multivalue and still get multiple items shown in Filter panels.

(In case you are wondering, foo_dynfil seemingly can't write multivalue tags. Also $stripprefix() would be nice to use on multivalue tags.)

Not really a priority, just was curious.

reupen commented 8 years ago

I agree it would be a nice improvement.

Of course, Album List and Album list panel has similar functionality too. As far as I can recall, I didn't implement it in Filters because the implementation is a bit of a hack and the simple field name syntax should have better performance (though less flexibility, of course).

But that doesn't seem particularly relevant now and it would be better to have parity with Album list panel in that respect.

(For info, how it is implemented is described here: http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Titleformat_Album_List#Branching_expressions. You can stick $char(4)artist 1$char(5)artist 2$char(4) in as a view in Album List for an idea of what's happening.)

Daeron08 commented 8 years ago

I was actually just messing with those $chars in Album list, that's why I was wondering why Filter panels have no such option. (And I don't like the tree format of Album list so I won't use that.)