Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Playlist Search is broken... (Read 2715 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Playlist Search is broken...

when i use tab or $char(9) repeatedly in my display list string, it break the playlist search feature.


Playlist Search is broken...

Reply #2
Here's a workaround...

Since search only searches the first column, you can add all the fields you want to be searched, but make them invisible.  If you're using columns with $char(9), it won't affect the relative width of the column.

Here's what I did...

Code: [Select]
//playlist bg color normally and selection color when selected makes it invisible
$puts(INVIS,FFE4CA|808080)


then make the columns...ex. the first column only shows the artist in the playlist, but search will search and show artist - title (album).

Code: [Select]
$num(%_playlist_number%,4)
808080|FFFFFF| $caps2(%artist%) $get(INVIS) - %title% '('%album%')'$repeat($char(9),3)
808080|FFFFFF| $if(%title%,$caps2(%title%),%_filename%)$repeat($char(9),3)
808080|FFFFFF| $caps2(%album%)$repeat($char(9),3)
808080|FFFFFF| $if(%date%,$num(%date%,4),$get(INVIS)'0000') 808080|FFFFFF| $if(%tracknumber%,$num(%tracknumber%,2),$get(INVIS)'00') 808080|FFFFFF| [%genre%]$repeat($char(9),2)
808080|FFFFFF|$if($greater($len(%_length%),4),%_length%,$get(INVIS)'0'%_length%)