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
Album list: Show all directories before files, when sorting by folder structure
Dandruff
post Dec 27 2008, 19:57
Post #1





Group: Members
Posts: 493
Joined: 20-April 04
Member No.: 13618



Album list:

-> sorting by folder structure


say we have mainfolder = C:\Music


contents of C:\Music are

dsdff (subfolder)
trtwr (subfolder)
1.mp3 (file)
s.mp3 (file)



-> now foobar displays it as

1.mp3
dsdff
s.mp3
trtwr


(folders and files listed mixed)


sad.gif


Why not displaying

dsdff
trtwr
1.mp3
s.mp3


(folders before files)

?

Windows Explorer and Total Commander for example both always display the folders before files.
Go to the top of the page
+Quote Post
Yirkha
post Jan 8 2009, 15:08
Post #2





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



It would make some sense, however I think Album list sorts always simply by the displayed string. Another hidden sorting criteria might need complex architecture changes, so don't hold your breath.


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
Yirkha
post Feb 26 2009, 12:07
Post #3





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



Btw, I've tried this custom formatting for a while and it works great, only looks a bit ugly...
$replace($directory_path($substr(%path%,4,999)),\,|000: )|%filename_ext%


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
BigBertrand
post Jun 30 2009, 13:23
Post #4





Group: Members
Posts: 25
Joined: 19-January 09
Member No.: 65760



Hi, I tried this command and I confirm this sorting does look ugly lol

I think the simpler way to solve Dandruff's problem would be by counting and comparing the number of "\" : one more=one subfolder deeper.

Moreover, related issues have been posted here and here. When I had enough free time I'll try to craft a nice sorting command cool.gif

Cheers
Go to the top of the page
+Quote Post
Dandruff
post Apr 11 2010, 16:18
Post #5





Group: Members
Posts: 493
Joined: 20-April 04
Member No.: 13618



Any chance to get this in the next version by default in the folder structure view? Really odd in my opinion that single files get listed between folders.
Go to the top of the page
+Quote Post
Yirkha
post Apr 20 2010, 23:08
Post #6





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



Eh "000:"... I currently use the following pattern, it looks quite nice:
"by folder structure+", "$replace($directory_path($substr(%path%,4,999)),\,| $char(8226) )|%filename_ext%"


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
Noxxit
post May 7 2010, 17:59
Post #7





Group: Members
Posts: 4
Joined: 21-April 10
Member No.: 80058



@Yirkha
just was looking for something like that. But changed it in some way:

CODE
$replace($replace($directory_path(%path%),C:\[path of your music]\,),\,|$char(8239))|[%tracknumber% - ][%track artist% - ]%title%


1. I changed the way the library shows your music (You have to paste the path of your music library)
2. I changed it not to show the full filename (just tracknumber, artist and title)
3. 8239 instead of 8226 to change the bullet to an empty space (just because the bullet doesn't seem to be nice to me tongue.gif - but you have to be carefull if some files have an empty space on the first digit of their %title% - they'll probably be previous the folders)

This post has been edited by Noxxit: May 7 2010, 18:05
Go to the top of the page
+Quote Post
sickdegrees
post Jan 22 2012, 03:12
Post #8





Group: Members
Posts: 2
Joined: 22-January 12
Member No.: 96611



I just stumbled onto this thread and it's exactly how i want to arrange my album list.

Can someone please tell me where/how to enter this code.
i don't really have time to learn anything advanced so just some simple instructions would be very helpful
Go to the top of the page
+Quote Post
Frecktel
post Jan 22 2012, 03:24
Post #9





Group: Members
Posts: 17
Joined: 11-January 09
Member No.: 65421



QUOTE (sickdegrees @ Jan 22 2012, 13:12) *
Can someone please tell me where/how to enter this code.


Go to Files -> Preferences -> Media Library -> Album List -> Add New
Put a custom name in the first column and copy paste the code in the second.
You should then be able to select your custom view in the Album List window.
Go to the top of the page
+Quote Post
sickdegrees
post Jan 22 2012, 17:20
Post #10





Group: Members
Posts: 2
Joined: 22-January 12
Member No.: 96611



thankyou i got it sorted now
Go to the top of the page
+Quote Post
baget
post Apr 19 2014, 19:05
Post #11





Group: Members
Posts: 1
Joined: 19-April 14
Member No.: 115600



Can someone please tell me where/how i can do like this in foobar:
Attach please screenshot of how is your tune up should look like.
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: 16th September 2014 - 05:42