IPB

Welcome Guest ( Log In | Register )

> foobar2000 Tech Support Forum Rules

Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.


See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Unexpected Behavior Playlist Search with Columns, Only 1st column searched
greatmagi
post Mar 16 2003, 00:11
Post #1





Group: Members
Posts: 16
Joined: 9-January 03
Member No.: 4481



I just switched my title formatting for the playlist to use $repeat($char(9),n) to resize the columns. I like this feature because you can use a variable width font and still have columns. Right now, I have 4 columns, respectively with repeats of 28, 30, 27, and 14 (maybe this is the problem?).

There are 2 issues:
1. The playlist search now only searches the first column of information (for me, the playlist number and artist name). The other columns (title, album, etc) are ignored, and searches for titles in the playlist return no entries. Before, the search function would find matches in any part of the formatting string (artist - title - album, etc), and show the entire formatting string.

2. The results of the search query only display the first column of information. (Maybe a workaround would be to create a title formatting option for the search window--these strings could be used for search and display of results).

Let me know what you guys think about the use of $char(9)...maybe another way to implement columns would simplify this...I think that the use of columns would be a very useful/popular feature with fb2k users.

Anyway, that's all I got...

EDIT: forgot...I'm using foobar2000 0.586

Here's a copy of my formatting string if that helps...

CODE
$if(%_isplaying%,

//Red if playing
0000FF$num(%_playlist_number%,4)
808080|FFFFFF| 0000FF$caps2(%artist%) $repeat($char(9),28)
808080|FFFFFF| 0000FF$if(%title%,$caps2(%title%),%_filename%) $repeat($char(9),30)
808080|FFFFFF| 0000FF$caps2(%album%)[ '('%date%')'] $repeat($char(9),27)
808080|FFFFFF| $if(%tracknumber%,0000FF$num(%tracknumber%,2),FFE4CA|808080'00') 808080|FFFFFF| [0000FF%genre%] $repeat($char(9),14)
808080|FFFFFF|$if(
$greater($num(%_length%,2),9)
,
0000FF$num(%_length%,2)':'$num($mod(%_length_seconds%,60),2)
,
FFE4CA|808080'0'0000FF$num(%_length%,1)':'$num($mod(%_length_seconds%,60),2)
)
,
//Black and Gray if not playing
$num(%_playlist_number%,4)
808080|FFFFFF| $caps2(%artist%) $repeat($char(9),28)
808080|FFFFFF| $if(%title%,$caps2(%title%),%_filename%) $repeat($char(9),30)
808080|FFFFFF| $caps2(%album%)[ '('%date%')'] $repeat($char(9),27)
808080|FFFFFF| $if(%tracknumber%,$num(%tracknumber%,2),FFE4CA|808080'00') 808080|FFFFFF| [%genre%] $repeat($char(9),14)
808080|FFFFFF|$if(
$greater($num(%_length%,2),9)
,
$num(%_length%,2)':'$num($mod(%_length_seconds%,60),2)
,
FFE4CA|808080'0'$num(%_length%,1)':'$num($mod(%_length_seconds%,60),2)
))


This post has been edited by greatmagi: Mar 16 2003, 00:12
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th April 2014 - 11:21