Display *1st* file in each folder in branch view? [GRANTED]

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Display *1st* file in each folder in branch view? [GRANTED]

Post by aliteralmind »

I have 71 folders containing mp3s, and I want to append " - [bitrate]k mp3" to the end of each folder's name. All mp3s in each folder have the same bit-rate, so I only need to see the first.

Is it possible to have branch view only show the first file in each folder?
Last edited by aliteralmind on 03 Apr 2015 14:40, edited 1 time in total.
Windows 8.1, 64-bit

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Only display 1st file in each folder in branch view?

Post by admin »

Liked the idea and added it. 8) :tup:

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Only display 1st file in each folder in branch view?

Post by aliteralmind »

Yay!
Windows 8.1, 64-bit

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Only display 1st file in each folder in branch view?

Post by admin »

FYI, this is what you want:

Code: Select all

* /lpd=1:flat

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Only display 1st file in each folder in branch view?

Post by aliteralmind »

This is actually a pretty beautiful feature, and I'm glad it's implemented beyond just branch view.

It also works by first switching to branch view, and then searching with "/limitperdir=1". It's automatically changed to "/limitperdir=1 /:flat" (where lpd is its shortcut).

That just saved me about an hour. Thanks Don!
Windows 8.1, 64-bit

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Only display 1st file in each folder in branch view?

Post by aliteralmind »

Here's a related question:

How do I eliminate all folders from this branch view that contain the " - [bitratenum] mp3" postfix? (where the top-most folder contains that postfix)

Something like

Code: Select all

 /limitperdir=1 /:flat:> \d+ mp3$ /x
but that doesn't work.
Windows 8.1, 64-bit

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Only display 1st file in each folder in branch view?

Post by admin »

Not possible.

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Only display 1st file in each folder in branch view?

Post by aliteralmind »

Ah well. Still celebrating the first step!
Windows 8.1, 64-bit

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: Only display 1st file in each folder in branch view?

Post by nerdweed »

Don,
As the switch is also supported in Tags database - would it always return the first matches or randomize. If it returns random rows, it would be fantastic. I can ditch some of my scripts then.

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Only display 1st file in each folder in branch view?

Post by admin »

No randomize, always the first.

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: Only display 1st file in each folder in branch view?

Post by aliteralmind »

A workaround to highlight the folders that haven't been renamed: Before you start, add "- mp3" (2 spaces) to the end of each folder. Then Ctrl+M (selection filter) to select all folders with that postfix (search term "- mp3"). Whichever ones the bit rate has been added to won't be selected.
Windows 8.1, 64-bit

Post Reply