Hi! I need to show only selected files/folders. Is it a way to hide (temporary) unselected files/folders? I tried to play with filter, but can't find appropriate way.
The command to do that is Select HIDEUNSEL NOPATTERN. You can add it to a button or hotkey as desired.
I works! I made the button. It hides unselected files. But how to return back all the files? By refresh only? Is it a way to make toggle button to show/reset them?
Select SHOWHIDDEN NOPATTERN
Unfortunately it doesn't work...
It works for me.
You can add a three-button, add Select HIDEUNSEL NOPATTERN to hide unselected items, and Select SHOWHIDDEN NOPATTERN to show the hidden items again.
Then you can use the left click to hide and the right click to reset.
Here is a toggle button for hiding or unhiding selected items :
Hide-Unhide Selected Items in the Source File Display Toggle.dcf (600 Bytes)
and the code
@if:$tab:SEL
@set tab:SEL
Select NOPATTERN HIDESEL
@if:else
Select NOPATTERN SHOWHIDDEN
@set tab:SEL=on
Here is a three button button for hiding or unhiding either selected or unselected items:
Thanks!
I slightly modified first button for my purposes:
@if:$tab:SEL
@set tab:SEL
Select NOPATTERN HIDEUNSEL
@if:else
Select NOPATTERN SHOWHIDDEN
@set tab:SEL=on
Although I wanted a button that locks in the on position and releases when off. But this option is also good.
If you want more options, you can try the Named Filter Menu v2 by aussieboykie. This menu also has an option to hide unselected items.
Thanks!
But I think it's too much for my purpose. Just a button is enough.
That’ll go wrong when you change folders or clear the filter in another way.
A script could check how many files are hidden, run the unhide command, then check if the hidden count changed and, if it didn’t, run the command to hide the selected files. That would probably work as a toggle without needing to maintain extra state or worry about the other ways items may be hidden.
Or, even easier, if anything is selected, hide it, otherwise run the unhide command.
