Album list: Show all directories before files, when sorting by folder structure |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
Album list: Show all directories before files, when sorting by folder structure |
Dec 27 2008, 19:57
Post
#1
|
|
|
Group: Members Posts: 451 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) 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. |
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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 Cheers |
|
|
|
Apr 11 2010, 16:18
Post
#5
|
|
|
Group: Members Posts: 451 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.
|
|
|
|
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.
|
|
|
|
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 This post has been edited by Noxxit: May 7 2010, 18:05 |
|
|
|
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 |
|
|
|
Jan 22 2012, 03:24
Post
#9
|
|
![]() Group: Members Posts: 16 Joined: 11-January 09 Member No.: 65421 |
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. |
|
|
|
Jan 22 2012, 17:20
Post
#10
|
|
|
Group: Members Posts: 2 Joined: 22-January 12 Member No.: 96611 |
thankyou i got it sorted now
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 17:30 |