There's two actions I can't figure out. Deselecting and scroll to content.
Select FILTER and Select FILTERDEF seem to respect different arguments. I can't seem to figure out how to get it to work.
For either of them I want to deselect what is not selected and also scroll to whatever has just been selected. Select FILTER works with DESELECTNOMATCH but FILTERDEF doesn't. While MAKEVISIBLE=immediate works with Select FILTERDEF but not Select FILTER.
The problem with not having DESLECTNOMATCH working is instead I have to Select NONE first, which delays the action and causes a visual stutter. I would like to avoid that, if I can.
(With some things it seems I have to use an established filter instead of filterdef)
And the scroll to selection doesn't seem to ever work for me.
MAKEVISIBLE=immediate only works for FILTER not FILTERDEF. I currently don't seem to have any way to scroll to something using FILTERDEF. SHOWFOCUS and SETFOCUS don't work.
FILTER lets you use a pre-saved filter, FILTERDEF lets you define the filter in the command line.
Note that FILTERDEF has to be the last argument in the command (since it consumes the rest of the line) so DESELECTNOMATCH would need to come before it.
Maybe post the actual command line you're trying to use if you need further help.
I can match a tag with FILTERDEF without first having to set up a unique filter for every tag I have.
But when using FILTERDEF I lose the deselect ability, so I have to add Select NONE before it.
And lose the ability to scroll to the files it just selected. Make Visible doesn't want to work with that.
I have both the deselect and the scroll to selection on this one. DESELECTNOMATCH does work with FILTER but not FILTERDEF.
But MAKEVISIBLE just scrolls to the top of the lister.
Select NOPATTERN SHOWFOCUS doesn't seem to want to work in combination with filter commands.
I've tried making a new hotkey, that is: Select NOPATTERN SHOWFOCUS.
Then using @sendkey at the end of a button to send that hotkey to force it to scroll to my selection. But nope of course not.
I need to be able to select by pattern and then scroll to that selection in the same button. How can I make that happen?
Select SHOWFOCUS will make the focus item visible.
(The focus item is usually one of the selected items, but not always.)
If using the Select command to select things, adding MAKEVISIBLE=immediate to the command will normally make it scroll to the first selected thing into view without any delay.
E.g. Select A* MAKEVISIBLE=immediate will select files starting with A and scroll the first one into view.
Or, an example using a simple filter:
Select MAKEVISIBLE=immediate FILTERDEF name match A*
Oh. When Jon mentioned FILTERDEF consumes the line I didn't clue in, that would include the make-visible too.
But for some reason it keeps scrolling to the top of the lister instead of to the first selected item.
Technically this one should work the same as your example, but doesn't.
@keydown:none
Select MAKEVISIBLE=immediate DESELECTNOMATCH FILTERDEF tags match BUSN
@keydown:ctrl
Select MAKEVISIBLE=immediate DESELECTNOMATCH TYPE=dirs FILTERDEF tags match BUSN
@keydown:shift
Select MAKEVISIBLE=immediate DESELECTNOMATCH TYPE=files FILTERDEF tags match BUSN
So keeping with this pattern, when I add another command, to pin the selected to top, I run into this problem again; of it being overwhelmed with instructions. So I assume that, with the three different modifier options I've reached the limit of how much I can stuff into a button?
Here's my example. The make visible no longer works when I add the set label line.