Page 1 of 1
Display *1st* file in each folder in branch view? [GRANTED]
Posted: 02 Feb 2015 04:44
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?
Re: Only display 1st file in each folder in branch view?
Posted: 02 Feb 2015 14:48
by admin
Liked the idea and added it.

Re: Only display 1st file in each folder in branch view?
Posted: 02 Feb 2015 17:54
by aliteralmind
Yay!
Re: Only display 1st file in each folder in branch view?
Posted: 02 Feb 2015 18:10
by admin
FYI, this is what you want:
Re: Only display 1st file in each folder in branch view?
Posted: 02 Feb 2015 18:14
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!
Re: Only display 1st file in each folder in branch view?
Posted: 02 Feb 2015 18:25
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.
Re: Only display 1st file in each folder in branch view?
Posted: 02 Feb 2015 18:32
by admin
Not possible.
Re: Only display 1st file in each folder in branch view?
Posted: 02 Feb 2015 18:38
by aliteralmind
Ah well. Still celebrating the first step!
Re: Only display 1st file in each folder in branch view?
Posted: 03 Feb 2015 13:44
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.
Re: Only display 1st file in each folder in branch view?
Posted: 03 Feb 2015 15:30
by admin
No randomize, always the first.
Re: Only display 1st file in each folder in branch view?
Posted: 04 Feb 2015 15:21
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.