IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Custom Columns with the New highlighting syntax, new syntax introduced in 1.0
shakey_snake
post Nov 24 2009, 17:31
Post #1





Group: FB2K Moderator
Posts: 4322
Joined: 1-November 06
From: Cincinnati
Member No.: 37036



So, I figured I'd share some of my personal examples of what can be done with the new highlighting codes.

Similar to default "Track No' column
Shades leading zeros, highlights now playing
CODE
$if(%discnumber%,$if(%isplaying%,>>)%discnumber%.[%track%],[$ifgreater(10,%track%,<<<0>>>$if(%isplaying%,>>)$num(%track%,1),$if(%isplaying%,>>)%track%)])


Similar to default 'Title / Track artist' column
Shades contents of parentheses, highlights now playing
CODE
$if(%isplaying%,>>)$replace($if2(%title%,%filename%),'(',<<'(',')',')'>>)[' // '%track artist%]$if(%isplaying%,'<<')['   ['%queue_index%']']



What are you guys coming up with?

This post has been edited by shakey_snake: Nov 24 2009, 17:33


--------------------
elevatorladylevitateme
Go to the top of the page
+Quote Post
lokioki
post Nov 24 2009, 17:51
Post #2





Group: Members
Posts: 181
Joined: 16-December 08
Member No.: 64571



So cash and I just did it to highlight tracknumber : /

This post has been edited by lokioki: Nov 24 2009, 17:52
Go to the top of the page
+Quote Post
Andreasvb
post Nov 24 2009, 18:10
Post #3





Group: Members
Posts: 1344
Joined: 6-March 04
From: Sweden
Member No.: 12509



I saw that the Playing column got a built-in queue view, maybe it had before too, never really used DUI.

This is mostly for personal use, some custom tags.

Artist - Title column:
CODE
$puts(title_hl,$replace(>>>%title%,'(',<<<<<<'(',')',')>>>>>>>>'))$if(%release%,$get(title_hl),%artist% - $get(title_hl)))

Rating column:
CODE
<$repeat(★>,$meta(rating)) $if($meta(fav),>>>♪)


--------------------
Windows 8.1u3 Pro x64 Media Center // foobar2000 1.3.6
Go to the top of the page
+Quote Post
ojdo
post Nov 24 2009, 23:14
Post #4





Group: Members
Posts: 894
Joined: 18-June 06
From: Germany
Member No.: 31980



Nothing fancy, but:

Rating in highlight color dots:
CODE
>>$if(%rating%,$repeat(•,%rating%))<<


Title / Track Artist, but with shaded Track Artist:
CODE
%title%[<<' // '%track artist%>>]


And a "service" column: Hihglighted "!" if there is a non-replaygained track:
CODE
>>>$if(%__replaygain_track_gain%,,!)<<<

I just need it in my "new items" playlist, but it is so thin that it can stay activated everywhere. Could also be added to another column but I like to keep things separated.

Oh, this one I like: %play_count% shaded depending on the value. From 1 (light background) until 10 (default text color) the text becomes darker:
CODE
$ifgreater(%play_count%,9,%play_count%,$select(%play_count%,<<<1>>>,<<<2>>>,<<<3>>>,<<4>>,<<5>>,<<6>>,<7>,<8>,<9>))


--------------------
http://freemusi.cc/
Go to the top of the page
+Quote Post
lokioki
post Nov 25 2009, 12:18
Post #5





Group: Members
Posts: 181
Joined: 16-December 08
Member No.: 64571



How can I add Ojdo`s play_count code and Shakey´s codes together ?
Meaning I'd like to stuck them in a same column if possible, I can't figure out how to make it work.

This post has been edited by lokioki: Nov 25 2009, 12:22
Go to the top of the page
+Quote Post
Yirkha
post Nov 25 2009, 12:35
Post #6





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



Just append one after another, what doesn't seem to work?


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
Xezzy
post Nov 25 2009, 13:25
Post #7





Group: Members
Posts: 209
Joined: 14-February 08
Member No.: 51306



QUOTE (ojdo @ Nov 25 2009, 00:14) *
Oh, this one I like: %play_count% shaded depending on the value. From 1 (light background) until 10 (default text color) the text becomes darker:
CODE
$ifgreater(%play_count%,9,%play_count%,$select(%play_count%,<<<1>>>,<<<2>>>,<<<3>>>,<<4>>,<<5>>,<<6>>,<7>,<8>,<9>))


Thanks!

In my setup I use previously mentioned highlighting for "// %artist%", dimming for "(parens)" and my rating column (notes for ratings 1-4, heart for rating 5):
CODE
$if(%rating%,$ifequal(%rating%,5,>>>♥<<<,$repeat(>,$sub(%rating%,2))$char($add(9832,%rating%))$repeat(<,$sub(%rating%,2))), )

Go to the top of the page
+Quote Post
marc2003
post Nov 25 2009, 13:26
Post #8





Group: Members
Posts: 4893
Joined: 27-January 05
From: England
Member No.: 19379



<%artist%> %title%

shows contrasting colours for both artist and title when selected and not selected. no problem.

but if you use

>%artist%< %title%

both artist and title are shown as the same colour when selected. non selected items show contrasting colours as you'd expect. is this by design or not?

screenshot:

Go to the top of the page
+Quote Post
lokioki
post Nov 25 2009, 15:28
Post #9





Group: Members
Posts: 181
Joined: 16-December 08
Member No.: 64571



QUOTE (Yirkha @ Nov 25 2009, 13:35) *
Just append one after another, what doesn't seem to work?

I guess I did something wrong the first time.. works fine now smile.gif

This post has been edited by lokioki: Nov 25 2009, 15:30
Go to the top of the page
+Quote Post
dubpistol
post Nov 25 2009, 16:49
Post #10





Group: Members
Posts: 176
Joined: 15-October 02
From: Camelot
Member No.: 3550



That's the snytax of my "Track Artist ● Title"-Column

CODE
$if(%isplaying%,>[%track artist% $char(8226) ]$replace(%title%,'(',<<<'(',')',')'>>>)<,[%track artist% $char(8226) ]$replace(%title%,'(',<<'(',')',')'>>))


It's bad, like marc2003 mentioned before, that highlight isn't visible on selected tracks.

That is how it looks (and should look):


And that is how it looks if the now-playling-highlighted track is selected:


This post has been edited by dubpistol: Nov 25 2009, 17:30
Go to the top of the page
+Quote Post
shakey_snake
post Nov 25 2009, 16:53
Post #11





Group: FB2K Moderator
Posts: 4322
Joined: 1-November 06
From: Cincinnati
Member No.: 37036



In several color themes highlight and selection color are the same or very similar. So you'd get invisible or near text if that were to happen.

This won't be changed.

This post has been edited by shakey_snake: Nov 25 2009, 16:55


--------------------
elevatorladylevitateme
Go to the top of the page
+Quote Post
Canar
post Nov 25 2009, 16:53
Post #12





Group: Super Moderator
Posts: 3373
Joined: 26-July 02
From: To:
Member No.: 2796



...and so the cycle begins anew as foobar2000 users begin to clutter their formatting scripts once again... happy.gif;


--------------------
You cannot ABX the rustling of jimmies.
No mouse? No problem.
Go to the top of the page
+Quote Post
shakey_snake
post Nov 25 2009, 16:54
Post #13





Group: FB2K Moderator
Posts: 4322
Joined: 1-November 06
From: Cincinnati
Member No.: 37036



At least they're portable now. tongue.gif


--------------------
elevatorladylevitateme
Go to the top of the page
+Quote Post
dubpistol
post Nov 25 2009, 17:17
Post #14





Group: Members
Posts: 176
Joined: 15-October 02
From: Camelot
Member No.: 3550



QUOTE (shakey_snake @ Nov 25 2009, 16:53) *
In several color themes highlight and selection color are the same or very similar. So you'd get invisible or near text if that were to happen.

I guess I don't understand. I tried every color theme. Highlighted text, if selected, is everytime only black or white, while dimmed text is real dimmed if selected. Maybe I explained it a little bit incomprehensible, so I added two screenshots to my last posting. blink.gif

This post has been edited by dubpistol: Nov 25 2009, 17:29
Go to the top of the page
+Quote Post
KarnEvil9
post Jan 15 2010, 17:16
Post #15





Group: Members
Posts: 149
Joined: 16-June 05
Member No.: 22774



Forgive my ignorance, but where do I place this code?


--------------------
My Last.fm Profile: http://www.last.fm/user/_Tarkus_/
Go to the top of the page
+Quote Post
shakey_snake
post Jan 15 2010, 17:35
Post #16





Group: FB2K Moderator
Posts: 4322
Joined: 1-November 06
From: Cincinnati
Member No.: 37036



As per the topic title:
Preferences->Display-> Default User Interface->Playlist View->Custom Columns->Pattern [column]

I guess I should have mentioned it in the OP.


--------------------
elevatorladylevitateme
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: 27th December 2014 - 12:38