Installation: Add a JScript Panel to the layout in the usual way. Click the JScript panel (or right click and choose configure) to open the editor. Use the tools button to import the Library Tree script.

Library Tree

Nice git for the new year !!! Everything working great so farLove keyboard navigation and selection options Way better than Library tree component One thing i miss from that would be the filtering options for views but this is feels way smoother and i really needed to this non-transparent background of foo_uie_library_tree to go away (most importantly )

I am familiar with the thanhdat script and have posted about it on HA. This resulted in emails from other users, who became frustrated as it became increasingly broken, due to incompatibility with new versions of wsh / JScript panel, and other issues with the script. So I was asked if I had done a modified version. In a nutshell, I found better ways of doing it. The result is a distinctive script and new code. The library handling / processing etc are done differently resulting in JScript Library Tree typically being 3-4 times faster. JScript Library tree also automatically syncs with the media library. Additionally, JScript Library Tree has lots of stuff / handling absent from the thanhdat script. The ideas and contribution of thanhdat in showing how it was possible to code a library view in wsh panel, and of others, is credited in the acknowledgments in the readme.

Re: Library Tree

Absolutely awesome script.But here comes a small issue:In the view settings, it seems to divide the string with "|" before it is calculated. It is good for avoiding bugs when the metadata contains the | character, indeed, but it also means that the depth of the tree cannot be variable.In foo_uie_library_tree, I use scripts like this

As some of my tracks do not have an content group or edition, it may cut the depth of the tree when needed. I think maybe your script can be enhanced this way.Thanks for bringing us this awesome script, again.

This forum is for uploading files only - everyone can attach files to their posts. Discussion should be kept separate and in another forum. Note that recent posts in this forum are not shown in the foobar2000 forum portal - this is on purpose.

Re: Library Tree

an anoying issue to fix please ... when resizing the panel height, displayed area, including the scrollbar do not fit the panel height, there is a gape when panel Height is not exactly a multiple of the row height value ...

Re: Library Tree

@fabiospark - feature added@Scrummble - I did look at this in some detail. For me, varying the number of branches from one node to the next according to whether tag info happens to be present or not is rather confusing. I also think there are other ways of doing it, e.g. consistent tagging or conditionally displaying variable info at the end of branches. For these reasons and because the changed jscript library handling needed will slow things down, I am reluctant to add it.@fals33 - I have added an option in properties to switch "Auto Fit" off.

CHANGELOG- Added a filter that applies before the tree is populated, enabling the tree to comprise different sub-populations of the library. Filters also offer quick access to commonly used queries. The filter can be hidden & has its own zoom. - Set filters in properties. Use text or foobar2000 query syntax. Gives sorted results and so sort operations N/A.- Fixed multi-value tag handling for fields that foobar2000 automatically remaps.- Search box renamed to "Search".- Made auto fit optional [set in properties] (auto fit stops clipping of text in the bottom row).- Added ability to set colour of custom nodes in properties.- Search symbol now opens query syntax help.- Fixed speed regression in rare case.- Improved handling of views and filters in panel properties.- Fixed minor redraw issues.- Made compatible with JScript Panel 1.1.0+.

Due to user requests, a separate discussion thread has been started, and future discussion should go here..

The new thread contains updated pictures incorporating the filter and an updated feature summary.

Re: Library Tree

Got one small idea for a future release though. Just cosmetics but it makes for a more consistent feel IMO. I love the Filter dropdown, in fact, I like it so much I'd love to have the view selection also in a dropdown next to it

Apart from running into the same 'wall' @Scrummble found, the only other things that would make me drop the Library Tree panel version completely is the Same .... (Artist/Song/Genre/Style/Etc) auto searches and the AutoPlaylist feature

Got one question though, is there an option I've overlooked that changes the way it does subcounts? I would personally prefer to see it count only the number of immediate entries of a subbranch instead of the total track count at the bottom of the current branch? The latter tends to be way off from the correct total since it also includes entries on playlists instead of just the playlist files (CUE, m-TAG), resulting in the same tracks getting counted more than once, As example, suppose you have a 15track album with a cue sheet (for whatever reason, e.g. to separate hidden tracks from the main song) resulting in effective 18 tracks, possibly having an m-TAG file pointing to the cue file for tag information, that will end up being counted as 15+18*2 = 51 tracks....apart from this, you lose the information of how many items there are on a particular sub level.