Select All Within Selected Folder

How can I make Ctrl + Shift + A select all files but only within my opened (selected) folder?
Selected Folder

@nodeselect
Select PATTERN=* PATH={filepath} TYPE=files
1 Like

Cool that works. Thnx .:blush:

I'm thinking how to deselect the parent folder too. Using a select-all is usually to run a command on all the files, but if the parent folder is selected too, it will be included in that operation. I'm not seeing a Select = deselect parent folder. ?

I'm also thinking of how to make it drill down into all the child folders' files (only for the times I would want that; not all the time) but I can enable flat view first, then this "select all in folder". Probably will use Flat View > Grouped for this. But I need to have the parent folder selected for this to work, and have no way of selecting the parent of files that aren't in a subfolder. :thinking:

Try this code to select all items in a selected expanded folder except the parent folder:

@disablenosel:dirs
@keydown:none
@enableif:Set EXPANDABLEFOLDERS=On
@nofilenamequoting
Select DESELECTNOMATCH FILTERDEF location match "{sourcepath|escregex|escbackslash}.+" regex
1 Like

Testing this out, I'm getting interesting results. It's neat, but doing everything *except for what we intended it to do. Except I did get it to work once.

It will perform a 'select all' if the parent folder is clicked on, even without being checkbox selected (the previous code wouldn't do anything).

It also selects floating files within the same parent of the selected folder (floating?)
In this example it selected the two floating files, deselected the parent ("New Vids" = that was desired) but also selected the subfolder and everything in it ("Other"), without it even being expanded.

Ctrl Shift A

So your code is interesting. Think I will keep it around and maybe have multiple shortcuts.
We only have the two modifiers available before it starts to get weird, and we get diminishing results for shortcuts we never use.

I'm thinking:
Ctrl + A = Select All
Ctrl + Shift + A = Select All In Selected Folder Only, And Deselect The Folder
Ctrl + Alt + A = Select All In Selected Folder Only, And Deselect The Folder, And Select All Subfolders And Their Files

Sadly I just learned that my custom deselect code doesn't deselect items that are behind a collapsed subfolder.

What would be ideal and make all this unnecessary, is if Shift + Home would select all only in the selected folder (same with Shift + End). But it selects all, to the end of the lister.

As in: I could select the first file in a folder, press Shift + End, and only those in that folder would be selected. Like so:
Terminate
I clicked on the first file in "Other" (index #9). Would be nice if Shift + End terminated at the end of that folder. If I wanted to escape the bounds of that folder I would hit Shift + End again and it would select the rest of it, all the way to the end of the parent.

I dunno, this might become more hassle than it's worth.