@Yirkha
just was looking for something like that. But changed it in some way:
$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 - 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)
Further changed this line, as I had some issues with it:
1. Songs which were on the base of the music library would still show the entire path. This is because the directory_path function strips the last slash and the replace wouldn't find it.
Example:
path = $directory_path = $replace
C:\Users\MyName\Music\song.mp3 = C:\Users\MyName\Music = C:\Users\MyName\Music (replace won't work)
C:\Users\MyName\Music\artist\song.mp3 = C:\Users\MyName\Music\artist = artist
And if you change the replace so it doesn't include the \ another problem occurs:
Example:
path = $directory_path = $replace
C:\Users\MyName\Music\song.mp3 = C:\Users\MyName\Music = "" (empty string)
C:\Users\MyName\Music\artist\song.mp3 = C:\Users\MyName\Music\artist = \artist (this leading slash would cause a leading collapsible entry in the listings)
So this was fixed by doing the replace first, then doing the directory_path function.
2. There's a | pipe that is always between the folder and song, even when the folder is an empty string. Which means that all songs in the base folder now show like if they were in subfolder that had no name. This pipe should only be there if there is a folder. So I added an if condition. To make it cleaner I used the puts and get function to store directory part. Another non-breaking space is needed in this case on the left of the directory string, as the replace doesn't cover this spot.
$puts(dir,$replace($directory_path($replace(%path%,C:\[path of your music]\,)),\,|$char(8239)))$if($get(dir),$char(8239)$get(dir)|)%filename_ext%
$puts(dir,$replace($directory_path($replace(%path%,C:\[path of your music]\,)),\,|$char(8239)))$if($get(dir),$char(8239)$get(dir)|)[%tracknumber% - ][%track artist% - ]%title%
Note that how the songs are shown can be either a filename or more detailed information.